diff options
author | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-10-28 15:17:41 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-11-04 19:43:29 -0400 |
commit | 17f09d3f619a7ad2d2b021b4e5246f08225b1b0f (patch) | |
tree | a4ac765bef9792517d085726aff4dc2093b29ec0 /block/elevator.c | |
parent | 4330fe35b8213e92ff51907b4cb6323be943a9ad (diff) | |
download | linux-stable-17f09d3f619a7ad2d2b021b4e5246f08225b1b0f.tar.gz linux-stable-17f09d3f619a7ad2d2b021b4e5246f08225b1b0f.tar.bz2 linux-stable-17f09d3f619a7ad2d2b021b4e5246f08225b1b0f.zip |
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>
Diffstat (limited to 'block/elevator.c')
0 files changed, 0 insertions, 0 deletions