From: Sean Hefty Date: Sat, 13 Apr 2013 20:18:07 +0000 (-0700) Subject: rdma_cm: Detect recursive calls to rdma_seterrno() X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=d5241e70cdc99093a932a43dfceb6a52b94ce5c0;p=~shefty%2Flibrdmacm.git 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 ---