diff options
author | Vu Pham <[email protected]> | 2013-10-10 13:50:29 +0200 |
---|---|---|
committer | Roland Dreier <[email protected]> | 2013-11-08 14:43:17 -0800 |
commit | 65d7dd2f3479ef5aec1d9ddd1481cb7851c11af6 (patch) | |
tree | efdbf96930f18494284b8d90f95ad6db4be9d18a /lib/memory-notifier-error-inject.c | |
parent | 71444b97816ae08a1cc435f044f9f1f4cbd51e6a (diff) |
IB/srp: Remove target from list before freeing Scsi_Host structure
Remove an SRP target from the SRP target list before invoking the last
scsi_host_put() call. This change is necessary because that last put
frees the memory that holds the srp_target_port structure.
This patch prevents the following kernel oops:
RIP: 0010:[<ffffffff810b00d0>] __lock_acquire+0x500/0x1570
Call Trace:
[<ffffffff810b11e4>] lock_acquire+0xa4/0x120
[<ffffffff81531206>] _spin_lock+0x36/0x70
[<ffffffffa01b6d8f>] srp_remove_work+0xef/0x180 [ib_srp]
[<ffffffff8109125c>] worker_thread+0x21c/0x3d0
[<ffffffff81096e86>] kthread+0x96/0xa0
[<ffffffff8100c20a>] child_rip+0xa/0x20
Signed-off-by: Vu Pham <[email protected]>
[ bvanassche - Modified path description and CC'ed stable. ]
Signed-off-by: Bart Van Assche <[email protected]>
Cc: <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions