]> git.baikalelectronics.ru Git - kernel.git/commit
af_packet: use sizeof instead of constant in spkt_device
authordanborkmann@iogearbox.net <danborkmann@iogearbox.net>
Sun, 10 Jun 2012 08:59:28 +0000 (08:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jun 2012 23:51:51 +0000 (16:51 -0700)
commitd3d6d4817d0177b49a38b096071c6476e6add92f
treefa880b187e38df3499e490b78f435e2c952c11c9
parent9fa0dee2e45f9f868758c279ff5cb4dcb2e8cf34
af_packet: use sizeof instead of constant in spkt_device

This small patch removes access to the last element of the spkt_device
array through a constant. Instead, it is accessed by sizeof() to respect
possible changes in if_packet.h.

Signed-off-by: Daniel Borkmann <daniel.borkmann@tik.ee.ethz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c