]> git.baikalelectronics.ru Git - kernel.git/commit
pktgen: Fix unsigned function that is returning negative vals
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 19 Jan 2012 15:40:06 +0000 (15:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jan 2012 20:08:44 +0000 (15:08 -0500)
commit1e01c250b05a22c821a561f997904e160aca3476
tree7c2cf691a713abb91fa4e452a5d4dad82bb4810a
parent744645ac967a0a0315df78a213384f8f4f662c21
pktgen: Fix unsigned function that is returning negative vals

Every call to num_args() immediately checks the return value for
less than zero, as it will return -EFAULT for a failed get_user()
call.  So it makes no sense for the function to be declared as an
unsigned long.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c