mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
scsi: scsi_dh_alua: fix missing kref_put() in alua_rtpg_work()
Reference count of pg leaks in alua_rtpg_work() since kref_put() is not called to decrease the reference count of pg when the condition pg->rtpg_sdev==NULL satisfied (actually it is easy to satisfy), it would cause memory of pg leakage. Signed-off-by: tang.junhui <[email protected]> Cc: <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
2bf7dc8443
commit
1fdd14279e
1 changed files with 1 additions and 0 deletions
|
|
@ -793,6 +793,7 @@ static void alua_rtpg_work(struct work_struct *work)
|
|||
WARN_ON(pg->flags & ALUA_PG_RUN_RTPG);
|
||||
WARN_ON(pg->flags & ALUA_PG_RUN_STPG);
|
||||
spin_unlock_irqrestore(&pg->lock, flags);
|
||||
kref_put(&pg->kref, release_port_group);
|
||||
return;
|
||||
}
|
||||
if (pg->flags & ALUA_SYNC_STPG)
|
||||
|
|
|
|||
Loading…
Reference in a new issue