Re: [PATCH] scsi: add put_device() after device_find_child()

2013-05-08 Thread Vikas Chaudhary
-Original Message- From: Mike Christie Date: Monday 6 May 2013 10:36 PM To: Zhao Hongjiang Cc: "jbottom...@parallels.com" , Ravi Anand , Vikas , scsi Subject: Re: [PATCH] scsi: add put_device() after device_find_child() >On 05/06/2013 06:55 AM, Zhao Hongjiang

Re: [PATCH] scsi: add put_device() after device_find_child()

2013-05-06 Thread Mike Christie
On 05/06/2013 06:55 AM, Zhao Hongjiang wrote: > The qla4xxx_sysfs_ddb_add() function uses device_find_child() but it does not > drop > the reference of the retrieved child. > > Signed-off-by: Zhao Hongjiang > --- > drivers/scsi/qla4xxx/ql4_os.c |1 + > 1 files changed, 1 insertions(+), 0 de

[PATCH] scsi: add put_device() after device_find_child()

2013-05-06 Thread Zhao Hongjiang
The qla4xxx_sysfs_ddb_add() function uses device_find_child() but it does not drop the reference of the retrieved child. Signed-off-by: Zhao Hongjiang --- drivers/scsi/qla4xxx/ql4_os.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drive