]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3cfae0526886dfe9ae8ca324739ca6f4d23e3b0
treeb365666da8564f60ded6fe30ae16f002ad523637
parentf46f7a864ffeb8668eeb7ce6a8595148d52edaeb
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