commit | fa66b909f382619da15f8c7e323145adfa94fdac | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Fri Jun 25 18:53:21 2010 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Jul 02 13:18:01 2010 +0200 |
tree | ad7e6948ea9eafbd78633a6d14d25cb5c90a88f1 | |
parent | 39508e7adb0de3ef69caa1b494d823d8ac11d3f3 [diff] |
scsi: scsi_bus_legacy_handle_cmdline() can fail, fix callers None of its callers checks for failure. scsi_hot_add() can crash because of that: (qemu) drive_add 4 if=scsi,format=host_device,file=/dev/sg1 scsi-generic: scsi generic interface too old Segmentation fault (core dumped) Fix all callers, not just scsi_hot_add(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>