]> 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)
commita6ff761c506530171180aa551a9a8d2b4272ee21
tree93b18adce07e85693f4e86c45ff353e6bcd4ab1b
parente7b14dafdb90e1d9a9785b7e95682e9e19e3b5d9
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