]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] sg: set class_data after success
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 15 Jan 2008 04:17:47 +0000 (13:17 +0900)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 23 Jan 2008 17:29:28 +0000 (11:29 -0600)
commita24484f281dda11e4fc0041a51907d3564da3d7f
tree4ce9a5b3f7911d417e16dddf11a9b23f863cce0b
parentd814c5173c671cf2c88d4e07db01b13312467ecd
[SCSI] sg: set class_data after success

If cdev_add fails in sg_add, sg_remove crashes since class_data is
bogus.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Douglas Gilbert <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/sg.c