Re: [PATCH] scsi: ufs: remove unnecessary goto label

2016-07-15 Thread Martin K. Petersen
> "Tiezhu" == Tiezhu Yang writes: Tiezhu> When buff_ascii kmalloc failed, there is no need to call kfree, Tiezhu> it should return -ENOMEM directly, this patch fixes it. Applied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: ufs: remove unnecessary goto label

2016-07-15 Thread Martin K. Petersen
> "Tiezhu" == Tiezhu Yang writes: Tiezhu> When buff_ascii kmalloc failed, there is no need to call kfree, Tiezhu> it should return -ENOMEM directly, this patch fixes it. Applied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

[PATCH] scsi: ufs: remove unnecessary goto label

2016-06-24 Thread Tiezhu Yang
When buff_ascii kmalloc failed, there is no need to call kfree, it should return -ENOMEM directly, this patch fixes it. Signed-off-by: Tiezhu Yang --- drivers/scsi/ufs/ufshcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c

[PATCH] scsi: ufs: remove unnecessary goto label

2016-06-24 Thread Tiezhu Yang
When buff_ascii kmalloc failed, there is no need to call kfree, it should return -ENOMEM directly, this patch fixes it. Signed-off-by: Tiezhu Yang --- drivers/scsi/ufs/ufshcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c