s390: Fix wrong size in memcmp (netiucv)
authorStefan Weil <weil@mail.berlios.de>
Wed, 2 Feb 2011 06:04:35 +0000 (06:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Feb 2011 23:00:02 +0000 (15:00 -0800)
commit5df979d6922d50cc12bfbe83721c143a5d0d31b7
tree65172ec53434369e1d8c0be88ae430833e2d4d84
parentd0ff1f52361d714863c49abb721a8714ea4e76d6
s390: Fix wrong size in memcmp (netiucv)

This error was reported by cppcheck:
drivers/s390/net/netiucv.c:568: error: Using sizeof for array given
as function argument returns the size of pointer.

sizeof(ipuser) did not result in 16 (as many programmers would have
expected) but sizeof(u8 *), so it is 4 or 8, too small here.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/netiucv.c