]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
RDS: null pointer dereference in rds_atomic_free_op
authorMohamed Ghannam <simo.ghannam@gmail.com>
Wed, 3 Jan 2018 21:06:06 +0000 (21:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jan 2018 19:19:26 +0000 (14:19 -0500)
commit7d11f77f84b27cef452cee332f4e469503084737
treeac0c45274f5eaff4dfae1056843f59e585eee78b
parentdfe8266b8dd10e12a731c985b725fcf7f0e537f0
RDS: null pointer dereference in rds_atomic_free_op

set rm->atomic.op_active to 0 when rds_pin_pages() fails
or the user supplied address is invalid,
this prevents a NULL pointer usage in rds_atomic_free_op()

Signed-off-by: Mohamed Ghannam <simo.ghannam@gmail.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/rdma.c