NTB: Handle ntb client device probes without present hardware
authorJon Mason <jon.mason@intel.com>
Sat, 19 Jan 2013 09:02:16 +0000 (02:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Jan 2013 23:45:50 +0000 (15:45 -0800)
commit8222b402e2df3b92948141046bae82fb774f3f64
treee4102fb924c2fd047dcddc04dd502486b77d9955
parent2910fe2a7d0dc0d01944110e462045441ba0856f
NTB: Handle ntb client device probes without present hardware

Attempts to probe client ntb drivers without ntb hardware present will
result in null pointer dereference due to the lack of the ntb bus device
being registers.  Check to see if this is the case, and fail all calls
by the clients registering their drivers.

Signed-off-by: Jon Mason <jon.mason@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ntb/ntb_transport.c