xprtrdma: Fix buffer leak after transport set up failure
authorChuck Lever <chuck.lever@oracle.com>
Fri, 15 Dec 2017 01:56:01 +0000 (20:56 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 16 Jan 2018 16:19:41 +0000 (11:19 -0500)
commit03ac1a76ce5e5a6052a421e1d6a5c97778e88a8c
treeb365666da8564f60ded6fe30ae16f002ad523637
parent1291a0d5049dbc06baaaf66a9ff3f53db493b19b
xprtrdma: Fix buffer leak after transport set up failure

This leak has been around forever, and is exceptionally rare.

EINVAL causes mount to fail with "an incorrect mount option was
specified" although it's not likely that one of the mount
options is incorrect. Instead, return ENODEV in this case, as this
appears to be an issue with system or device configuration rather
than a specific mount option.

Some obsolete comments are also removed.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/transport.c