]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: Make the copy length in af_packet sockopt handler unsigned
authorArjan van de Ven <arjan@linux.intel.com>
Wed, 30 Sep 2009 11:54:47 +0000 (13:54 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 15:11:47 +0000 (08:11 -0700)
commitdaa72302d0376fe98d71285ea962d5197198536f
tree803506e507a5388baabc29a04cd906bae04907a9
parentdc7fec29e1f24be79190e25aef1583c92111b052
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