]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
staging/slicoss: Check pointer before dereferencing
authorPeter Huewe <peterhuewe@gmx.de>
Tue, 19 Feb 2013 04:13:50 +0000 (05:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:22:43 +0000 (09:22 -0700)
commit81372118c6fc12d41b6e978b915cc010fe6e5700
tree06a6b4ebf7db027b6012ae73834dc04b08150361
parent4fcf94980c994ed992d8efd1424bd842225f1cc6
staging/slicoss: Check pointer before dereferencing

Smatch complains that the variable adapter is dereferenced before it is
checked:
slicoss.c:906 slic_timer_load_check() warn: variable dereferenced before
check 'adapter' (see line 904)

-> move the assignment after the check.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c