diff options
| author | Subhash Jadavani <subhashj@codeaurora.org> | 2016-10-27 17:25:58 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-01 09:46:40 +0100 |
| commit | 4df61d87ad67dece3c0f70072d8b7cc3552f858a (patch) | |
| tree | 32e15adcf7587c8f8943de1c7253da0152c3e335 /drivers/tty/tty_buffer.c | |
| parent | d43f955f2dd950a12a006e0d9f35389d75cbdddf (diff) | |
scsi: ufshcd: release resources if probe fails
commit afa3dfd42d205b106787476647735aa1de1a5d02 upstream.
If ufshcd pltfrm/pci driver's probe fails for some reason then ensure
that scsi host is released to avoid memory leak but managed memory
allocations (via devm_* calls) need not to be freed explicitly on probe
failure as memory allocated with these functions is automatically freed
on driver detach.
Reviewed-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_buffer.c')
0 files changed, 0 insertions, 0 deletions
