net: Make the copy length in af_packet sockopt handler unsigned
commit80a761c59bfe01de1deeb5fc66f5b7fbb3e1bfcf
authorArjan van de Ven <arjan@linux.intel.com>
Wed, 30 Sep 2009 11:54:47 +0000 (30 13:54 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 15:28:00 +0000 (5 08:28 -0700)
tree6a757eceaf5beaf6c5db0c0c5f56bd2882498e61
parent1a3e625b499e0567956996c55876ea5cafad150b
net: Make the copy length in af_packet sockopt handler unsigned

fixed upstream in commit b7058842c940ad2c08dd829b21e5c92ebe3b8758 in a different way

The length of the to-copy data structure is currently stored in
a signed integer. However many comparisons are done with sizeof(..)
which is unsigned. It's more suitable for this variable to be unsigned
to make these comparisons more naturally right.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/packet/af_packet.c