> Drivers are supposed to return errno, I'm sure lots and lots of them > have paths where they fail to do this. The code could check for errno, and assume if set that it's set to the correct error number. if (!qp) { ret = errno ? ERR(errno) : ENOMEM; or wrap the errno check/return in a macro - Sean -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html