From: Marc Kleine-Budde Date: Thu, 21 Oct 2010 01:01:15 +0000 (+0000) Subject: can: at91_can: fix use after free of priv X-Git-Tag: v2.6.37-rc1~88^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=759a6c768dcdbbb4d3f1fb965b674c15773e09ca;p=pandora-kernel.git can: at91_can: fix use after free of priv The priv is part of the memory allocated by alloc_candev(). This patch moved the free it after last usage of priv. While there convert all free_netdev() to free_candev() (which is currently just a wrapper around free_netdev()) to be symetrically with the allocation via alloc_candev(). Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller --- Reading git-diff-tree failed