* [PATCH] scsi_dh_alua: fix meory leak in alua_rtpg()
@ 2016-09-30 1:35 tang.junhui
2016-09-30 4:54 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: tang.junhui @ 2016-09-30 1:35 UTC (permalink / raw)
To: bart.vanassche; +Cc: stable, zhang.kai16, tang.junhui
From: "tang.junhui" <tang.junhui@zte.com.cn>
buff should be freed before returning with SCSI_DH_RETRY in alua_rtpg().
Signed-off-by: tang.junhui <tang.junhui@zte.com.cn>
---
drivers/scsi/device_handler/scsi_dh_alua.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c
index 752b5c9..241829e 100644
--- a/drivers/scsi/device_handler/scsi_dh_alua.c
+++ b/drivers/scsi/device_handler/scsi_dh_alua.c
@@ -583,6 +583,7 @@ static int alua_rtpg(struct scsi_device *sdev, struct alua_port_group *pg)
sdev_printk(KERN_ERR, sdev, "%s: rtpg retry\n",
ALUA_DH_NAME);
scsi_print_sense_hdr(sdev, ALUA_DH_NAME, &sense_hdr);
+ kfree(buff);
return err;
}
sdev_printk(KERN_ERR, sdev, "%s: rtpg failed\n",
--
2.8.1.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] scsi_dh_alua: fix meory leak in alua_rtpg()
2016-09-30 1:35 [PATCH] scsi_dh_alua: fix meory leak in alua_rtpg() tang.junhui
@ 2016-09-30 4:54 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2016-09-30 4:54 UTC (permalink / raw)
To: tang.junhui; +Cc: bart.vanassche, stable, zhang.kai16
On Fri, Sep 30, 2016 at 09:35:47AM +0800, tang.junhui@zte.com.cn wrote:
> From: "tang.junhui" <tang.junhui@zte.com.cn>
>
> buff should be freed before returning with SCSI_DH_RETRY in alua_rtpg().
>
> Signed-off-by: tang.junhui <tang.junhui@zte.com.cn>
> ---
> drivers/scsi/device_handler/scsi_dh_alua.c | 1 +
> 1 file changed, 1 insertion(+)
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.
</formletter>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-30 5:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-30 1:35 [PATCH] scsi_dh_alua: fix meory leak in alua_rtpg() tang.junhui
2016-09-30 4:54 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).