As man pages state, these two functions returns 0 on success, or the value of errno on failure (which indicates the failure reason). In ubuntu 16.04 inbox OFED, if the call fails, errno would not set to corresponding value, but returning value does. This patch complies to the documents.
As man pages state, these two functions returns 0 on success, or the value of errno on failure (which indicates the failure reason). In ubuntu 16.04 inbox OFED, if the call fails, errno would not set to corresponding value, but returning value does. This patch complies to the documents.