From: David Matlack Date: Tue, 6 May 2014 04:02:37 +0000 (-0700) Subject: staging: slicoss: fix use-after-free bug in slic_entry_remove X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~563 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dedabbbcb5ed7c75664b4ca66a525c09fe6acf12;p=pandora-kernel.git staging: slicoss: fix use-after-free bug in slic_entry_remove This patch fixes a use-after-free bug that causes a null pointer dereference in slic_entry_halt. Since unregister_netdev() will ultimately call slic_entry_halt (the net_device ndo_stop() virtual function for this device), we should call it before freeing the memory used by slic_entry_halt. Signed-off-by: David Matlack Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed