]> asedeno.scripts.mit.edu Git - linux.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)
commitf275ee0fa3a06eb87edc229749cf1eb18f0663fa
tree4042475e5050085618e212fbfb8b5f0388522f54
parent13d7f46386e060df31b727c9975e38306fa51e7a
IN_BADCLASS: fix macro to actually work

Commit 65cab850f0ee ("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: 65cab850f0ee ("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