scsi: mvsas: mv_sas.c: Fix for possible null pointer dereference
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 18 May 2014 16:12:26 +0000 (18:12 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 19 Jun 2014 13:29:51 +0000 (15:29 +0200)
commiteaa015d2bfc85dcabb44184b6ef826361b993c4b
tree044ab3f914b30c090b29a00075f8ef21f012a30c
parent305af08c5398bab6c7029da53eb15d85a53eef0e
scsi: mvsas: mv_sas.c: Fix for possible null pointer dereference

There is otherwise a risk of a possible null pointer dereference.

Was largely found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/scsi/mvsas/mv_sas.c