aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph/crush
diff options
context:
space:
mode:
authorSjur Brændeland <sjur.brandeland@stericsson.com>2012-07-15 10:10:14 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-09 08:27:51 -0700
commit22cb83b5a318697b09fe1d6e237703d8371ab1fe (patch)
treebf6d4961ba259eb58ac130e670e3d71bc2bc2d46 /net/ceph/crush
parent2f890d2777247beb207be1c99835a0c5e09d340c (diff)
downloadkernel_samsung_smdk4412-22cb83b5a318697b09fe1d6e237703d8371ab1fe.zip
kernel_samsung_smdk4412-22cb83b5a318697b09fe1d6e237703d8371ab1fe.tar.gz
kernel_samsung_smdk4412-22cb83b5a318697b09fe1d6e237703d8371ab1fe.tar.bz2
caif: Fix access to freed pernet memory
[ Upstream commit 96f80d123eff05c3cd4701463786b87952a6c3ac ] unregister_netdevice_notifier() must be called before unregister_pernet_subsys() to avoid accessing already freed pernet memory. This fixes the following oops when doing rmmod: Call Trace: [<ffffffffa0f802bd>] caif_device_notify+0x4d/0x5a0 [caif] [<ffffffff81552ba9>] unregister_netdevice_notifier+0xb9/0x100 [<ffffffffa0f86dcc>] caif_device_exit+0x1c/0x250 [caif] [<ffffffff810e7734>] sys_delete_module+0x1a4/0x300 [<ffffffff810da82d>] ? trace_hardirqs_on_caller+0x15d/0x1e0 [<ffffffff813517de>] ? trace_hardirqs_on_thunk+0x3a/0x3 [<ffffffff81696bad>] system_call_fastpath+0x1a/0x1f RIP [<ffffffffa0f7f561>] caif_get+0x51/0xb0 [caif] Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ceph/crush')
0 files changed, 0 insertions, 0 deletions