From: Oliver Hartkopp Date: Tue, 2 Feb 2010 15:21:34 +0000 (-0800) Subject: can: deny filterlist access on non-CAN interfaces X-Git-Tag: v2.6.34-rc1~233^2~476 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b64056dacf6ec81986d63dff96fca039fe95f6e;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed