]> git.baikalelectronics.ru Git - kernel.git/commit
net/rds: Fix NULL/ERR_PTR inconsistency
authorGerd Rausch <gerd.rausch@oracle.com>
Tue, 16 Jul 2019 22:29:07 +0000 (15:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jul 2019 19:06:52 +0000 (12:06 -0700)
commitd104ddf7e633b850772bae5bbbb250221c88af7e
tree9207a91ee47ffe0f34d883d55a49f12e71af4361
parente464011e0bba211e72dabe8a8a4ec3f1cc9f45b2
net/rds: Fix NULL/ERR_PTR inconsistency

Make function "rds_ib_try_reuse_ibmr" return NULL in case
memory region could not be allocated, since callers
simply check if the return value is not NULL.

Signed-off-by: Gerd Rausch <gerd.rausch@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_rdma.c