]> git.baikalelectronics.ru Git - kernel.git/commit
IN_BADCLASS: fix macro to actually work
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jan 2019 20:24:13 +0000 (21:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jan 2019 05:45:21 +0000 (21:45 -0800)
commitde1d79f35aa677c041ced6df4e702e25491768a5
tree4042475e5050085618e212fbfb8b5f0388522f54
parenta479b26a883f7a732ab53bbba61719181436b832
IN_BADCLASS: fix macro to actually work

Commit 3290c038cfde ("net: Allow class-e address assignment via ifconfig
ioctl") modified the IN_BADCLASS macro a bit, but unfortunatly one too
many '(' characters were added to the line, making any code that used
it, not build properly.

Also, the macro now compares an unsigned with a signed value, which
isn't ok, so fix that up by making both types match properly.

Reported-by: Christopher Ferris <cferris@google.com>
Fixes: 3290c038cfde ("net: Allow class-e address assignment via ifconfig ioctl")
Cc: Dave Taht <dave.taht@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/in.h