[SCSI] sg: fix oops in the error path in sg_build_indirect()
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 3 Sep 2009 12:27:08 +0000 (14:27 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Sep 2009 14:35:30 +0000 (09:35 -0500)
commite71044ee2efa4792e21d243b03d49006db66aec9
tree56a673a82d0d5f4fe8308a858a2958600b091ba9
parentb437b95620dbf4bf7bd13af0f9d32fdac82c5d37
[SCSI] sg: fix oops in the error path in sg_build_indirect()

When the allocation fails in sg_build_indirect(), an oops happens in
the error path. It's caused by an obvious typo.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Reported-by: Bob Tracy <rct@gherkin.frus.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/sg.c