diff options
| author | Dan Carpenter <[email protected]> | 2016-12-08 10:56:03 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2016-12-09 23:24:39 +0000 |
| commit | 296dc5806de57dc84fce000d60fc201ba40f96e8 (patch) | |
| tree | d2b7f637f70c5c0dafbd6e0f383c10119b098162 /net/lapb/lapb_out.c | |
| parent | Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
| download | kernel-296dc5806de57dc84fce000d60fc201ba40f96e8.tar.gz kernel-296dc5806de57dc84fce000d60fc201ba40f96e8.zip | |
x86/ldt: Make a size argument unsigned
My static checker complains that we put an upper bound on the "size"
argument but not a lower bound. The checker is not smart enough to know
the possible ranges of "old_mm->context.ldt->size" from
init_new_context_ldt() so it thinks maybe it could be negative.
Let's make it unsigned to silence the warning and future proof the code
a bit.
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Andy Lutomirski <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: [email protected]
Cc: Andrey Ryabinin <[email protected]>
Cc: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
