]> err.no Git - linux-2.6/commit
[SCSI] mptbase: fix use-after-free's
authorAdrian Bunk <bunk@kernel.org>
Wed, 20 Feb 2008 02:03:57 +0000 (20:03 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 22 Feb 2008 15:08:13 +0000 (09:08 -0600)
commitad008d42bcec99911b3270a8349f8ec8405a1c4e
treeb6dc4fce8cc602ebb17ddc18dd228952461af00d
parent3b0f208a583f130f1e551a6b8673734f51ab7dcd
[SCSI] mptbase: fix use-after-free's

ioc->name is used in the printk's after ioc has been freed.  Free
after prinks to fix this.

This patch fixes two use-after-free's introduced by
commit e78d5b8f1e73ab82f3fd041d05824cfee7d83a2c and spotted by the
Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/message/fusion/mptbase.c