From: Arjan van de Ven Date: Wed, 30 Sep 2009 11:54:47 +0000 (+0200) Subject: net: Make the copy length in af_packet sockopt handler unsigned X-Git-Tag: v2.6.27.36~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daa72302d0376fe98d71285ea962d5197198536f;p=pandora-kernel.git 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 Cc: David S. Miller Cc: Ingo Molnar Cc: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed