]> 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)
commita60e427801021ff5b6bf26fe5928d13473b12369
treeb365666da8564f60ded6fe30ae16f002ad523637
parent6d26e52fc39dd1b277640428ccc4ab1abd836cd8
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