]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Sep 2009 15:43:47 +0000 (08:43 -0700)
commit57f4fc5e83927aa807b877a848dec6d280f2ee22
treeeded1bf14e165eb472fd0dae0017ad71a0cda5e3
parent74fca6a42863ffacaf7ba6f1936a9f228950f657
sg: fix oops in the error path in sg_build_indirect()

commit e71044ee2efa4792e21d243b03d49006db66aec9 upstream.

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>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/sg.c