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)
commit8b64056dacf6ec81986d63dff96fca039fe95f6e
tree80119c42025a48ab9dacd90906794d8c2df05164
parent44298ec0f20c45b9be96e181976aef1152d373b2
can: deny filterlist access on non-CAN interfaces

In commit 20dd3850bcf860561496827b711fa10fecf6e787 "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