diff options
author | Tony Battersby <tonyb@cybernetics.com> | 2018-07-12 23:30:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-06 17:20:52 +0300 |
commit | b4653a3ea3d7e68d4118f0476c72f70288c6c7f4 (patch) | |
tree | a055c412d1edaa3c33d55cc2dd2977390f425573 /Makefile | |
parent | 1a08888316d2d69d772391597fadde90d1cf1483 (diff) | |
download | linux-b4653a3ea3d7e68d4118f0476c72f70288c6c7f4.tar.xz |
scsi: sg: fix minor memory leak in error path
commit c170e5a8d222537e98aa8d4fddb667ff7a2ee114 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions