Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scsi: sg: fix minor memory leak in error path
Fix a minor memory leak when there is an error opening a /dev/sg device. Fixes: cc833ac ("sg: O_EXCL and other lock handling") Cc: <stable@vger.kernel.org> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Tony Battersby <tonyb@cybernetics.com> Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
- Loading branch information