]> git.baikalelectronics.ru Git - kernel.git/commit
can: deny filterlist access on non-CAN interfaces
authorOliver Hartkopp <oliver@hartkopp.net>
Tue, 2 Feb 2010 15:21:34 +0000 (07:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Feb 2010 15:21:34 +0000 (07:21 -0800)
commit4ef197d27edb521cf0066a5174624becc9a29aeb
tree80119c42025a48ab9dacd90906794d8c2df05164
parent904fce29be494517f5f098683f00dfaac2bf55c5
can: deny filterlist access on non-CAN interfaces

In commit dda0bb882334a9ea69605d673546c55cc6544977 "can: Speed up CAN frame
receiption by using ml_priv" the formerly used hlist of receiver lists for
each CAN netdevice has been replaced.

The hlist content ensured only CAN netdevices to be accessed by the
can_rx_(un)register() functions which accidently dropped away together with
the hlist receiver implementation.

This patch re-introduces the check for CAN netdevices in can_rx_(un)register().

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/af_can.c