]> git.baikalelectronics.ru Git - kernel.git/commit
packet: Don't check frames_per_block against negative values
authorTobias Klauser <tklauser@distanz.ch>
Tue, 17 Nov 2015 09:38:36 +0000 (10:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Nov 2015 20:25:44 +0000 (15:25 -0500)
commit46e93a36e9f9c64164c6d9d14e3182f55a38cae3
tree9f8f042d945098206934bedc9326decbf92490b9
parent04b53e7e57e5017b9c0924ac7caf4a2d9e4019b4
packet: Don't check frames_per_block against negative values

rb->frames_per_block is an unsigned int, thus can never be negative.

Also fix spacing in the calculation of frames_per_block.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c