aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorChen Gang <[email protected]>2013-04-25 00:49:55 +0000
committerDavid S. Miller <[email protected]>2013-04-29 16:29:04 +0000
commit2c1bbbffa0b644fab4f91878cde0c2e8f52e2dcc (patch)
tree2b9efab1d5155c58fe2fb76116ec01f1df64161d /net/unix/af_unix.c
parentipvs: ip_vs_sip_fill_param() BUG: bad check of return value (diff)
downloadkernel-2c1bbbffa0b644fab4f91878cde0c2e8f52e2dcc.tar.gz
kernel-2c1bbbffa0b644fab4f91878cde0c2e8f52e2dcc.zip
net: mac802154: comparision issue of type cast, finding by EXTRA_CFLAGS=-W
Change MAC802154_CHAN_NONE from ~(u8)0 to 0xff, or the comparison in mac802154_wpan_xmit() for ``chan == MAC802154_CHAN_NONE'' will not succeed. This bug can be boiled down to ``u8 foo = 0xff; if (foo == ~(u8)0) [...] else [...]'' where the condition will always take the else branch. Signed-off-by: Chen Gang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions