]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit4194b4914a824c21bcad9305d6180825f4dc1f5e
tree9f8f042d945098206934bedc9326decbf92490b9
parent321beec5047af83db90c88114b7e664b156f49fe
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