NTB: variable dereferenced before check
authorJon Mason <jon.mason@intel.com>
Tue, 22 Jan 2013 18:35:40 +0000 (11:35 -0700)
committerJon Mason <jon.mason@intel.com>
Wed, 15 May 2013 17:57:17 +0000 (10:57 -0700)
commit186f27ff9f9ec5c110739ced88ce9f8fca053882
tree4f4738bb432a30ae4a0d3e2ddf13251cf3095746
parentf722406faae2d073cc1d01063d1123c35425939e
NTB: variable dereferenced before check

Correct instances of variable dereferencing before checking its value on
the functions exported to the client drivers.  Also, add sanity checks
for all exported functions.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jon Mason <jon.mason@intel.com>
drivers/ntb/ntb_transport.c