Searched hist:"17 f09d3f" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/sunrpc/ |
H A D | sysfs.c | 17f09d3f Thu Oct 28 14:17:41 CDT 2021 Anna Schumaker <Anna.Schumaker@Netapp.com> SUNRPC: Check if the xprt is connected before handling sysfs reads
xprts don't immediately reconnect when changing the "dstaddr" property, instead this gets handled the next time an operation uses the transport. This could lead to NULL pointer dereferences when trying to read sysfs files between the disconnect and reconnect operations. Fix this by returning an error if the xprt is not connected.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
|