]> git.baikalelectronics.ru Git - kernel.git/commit
block: xen-blkback: add null check to avoid null pointer dereference
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 11 May 2017 15:27:35 +0000 (10:27 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 15 May 2017 21:14:28 +0000 (17:14 -0400)
commit49919a53f21db3c82a12df8aabe9cc331e18b577
tree93b18adce07e85693f4e86c45ff353e6bcd4ab1b
parentf1b409c76a888ac20124057ec30d2c3456b877d0
block: xen-blkback: add null check to avoid null pointer dereference

Add null check before calling xen_blkif_put() to avoid potential
null pointer dereference.

Addresses-Coverity-ID: 1350942
Cc: Juergen Gross <jgross@suse.com>
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/xenbus.c