aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/algos/i2c-algo-bit.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2018-06-12 15:40:23 +0000
committerJason Gunthorpe <[email protected]>2018-06-12 20:39:32 +0000
commit1eb9364ce81d9445ad6f9d44921a91d2a6597156 (patch)
tree027b021e6efb08f389e12e1bd7af94bfc7b3f323 /drivers/i2c/algos/i2c-algo-bit.c
parentIB/mlx4: Fix an error handling path in 'mlx4_ib_rereg_user_mr()' (diff)
downloadkernel-1eb9364ce81d9445ad6f9d44921a91d2a6597156.tar.gz
kernel-1eb9364ce81d9445ad6f9d44921a91d2a6597156.zip
IB/uverbs: Fix ordering of ucontext check in ib_uverbs_write
During disassociation the ucontext will become NULL, however due to how the SRCU locking works the ucontext must only be examined after looking at the ib_dev, which governs the RCU control flow. With the wrong ordering userspace will see EINVAL instead of EIO for a disassociated uverbs FD, which breaks rdma-core. Cc: [email protected] Fixes: 491d5c6a3023 ("RDMA/uverbs: Move uncontext check before SRCU read lock") Reported-by: Mark Bloch <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions