commit | c170e5a8d222537e98aa8d4fddb667ff7a2ee114 | [log] [tgz] |
---|---|---|
author | Tony Battersby <tonyb@cybernetics.com> | Thu Jul 12 16:30:45 2018 -0400 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Thu Jul 12 23:08:10 2018 -0400 |
tree | 332831db1eb5b6ed4e0b2fa2383404b946bbfca2 | |
parent | a17037e7d59075053b522048742a08ac9500bde8 [diff] |
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: cc833acbee9d ("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>