]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rdma_cm: Detect recursive calls to rdma_seterrno()
authorSean Hefty <sean.hefty@intel.com>
Sat, 13 Apr 2013 20:18:07 +0000 (13:18 -0700)
committerSean Hefty <sean.hefty@intel.com>
Sat, 13 Apr 2013 20:18:07 +0000 (13:18 -0700)
commitd5241e70cdc99093a932a43dfceb6a52b94ce5c0
tree03e0d857be2abeca4aaf50a1c372dc983b1332dc
parente57928b701ded6c5417b5ac0c153a239bf947612
rdma_cm: Detect recursive calls to rdma_seterrno()

If rdma_seterrno() is called in a recursive fashion, the
result is that errno ends up set to -1.  Fix the original
occurrence of where this occurs and update rdma_seterrno()
to avoid it modifying errno incorrectly.

Problem reported by hookenz@gmail.com.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>