]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] libfc:prevent dereferencing ERR_PTR in fc_tm_done()
authorDan Carpenter <error27@gmail.com>
Sat, 29 Jan 2011 00:03:31 +0000 (16:03 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Feb 2011 16:57:54 +0000 (10:57 -0600)
commite4a9a98289606392f2b1b24b4ca4e29154ec4d15
tree2f2b31f1dddebe7a0bc6d8d97034272314861833
parent28a4af1e43047531ab612564e32ab9969c9dd965
[SCSI] libfc:prevent  dereferencing ERR_PTR in fc_tm_done()

If we goto out, then it tries to call kfree_skb() on an ERR_PTR which
will oops.  Just return directly.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_fcp.c