aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorMajd Dibbiny <[email protected]>2016-01-28 15:51:48 +0000
committerDoug Ledford <[email protected]>2016-02-02 21:42:22 +0000
commit09f16cf59fbf825130c216c3af189253505dc9d9 (patch)
tree83eaf9e7dd41596bc83285d9bbfb9ece5a64339b /fs/btrfs/dev-replace.c
parentIB/mlx5: Fix reqlen validation in mlx5_ib_alloc_ucontext (diff)
downloadkernel-09f16cf59fbf825130c216c3af189253505dc9d9.tar.gz
kernel-09f16cf59fbf825130c216c3af189253505dc9d9.zip
IB/mlx5: Fix use of null pointer PD
When a Raw Ethernet QP is created, a NULL pointer PD could be used. Fixing that by only using the PD after validating it's valid. smatch also reported this error: drivers/infiniband/hw/mlx5/qp.c:1629 mlx5_ib_create_qp() error: we previously assumed 'pd' could be null (see line 1616) Fixes: 0fb2ed66a14c ('IB/mlx5: Add create and destroy functionality for Raw Packet QP') Signed-off-by: Majd Dibbiny <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions