NTB: Fix issue where we may be accessing NULL ptr
authorDave Jiang <dave.jiang@intel.com>
Thu, 17 Sep 2015 20:27:04 +0000 (13:27 -0700)
committerJon Mason <jdmason@kudzu.us>
Sun, 8 Nov 2015 21:11:21 +0000 (16:11 -0500)
commit04afde45e096201f8fd74c1db848a5d85d1aa57d
treeb26f609ea9c211e40de16c9d795edc01c38a0e3c
parent6a13feb9c82803e2b815eca72fa7a9f5561d7861
NTB: Fix issue where we may be accessing NULL ptr

smatch detected an issue in the function ntb_transport_max_size() where
we could be dereferencing a dma channel pointer when it is NULL.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c