xen/blkback: potential null dereference in error handling
authorDan Carpenter <error27@gmail.com>
Fri, 27 May 2011 06:27:16 +0000 (09:27 +0300)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 1 Jun 2011 13:28:21 +0000 (09:28 -0400)
commit9b83c771214cf6a256ee875050e6eaf320cf7983
tree39b5308ea40a47d19cefab98721402296b78a246
parent6464920a6e30604cb71d0ecbaa20e35009bd76fb
xen/blkback: potential null dereference in error handling

blkbk->pending_pages can be NULL here so I added a check for it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
[v1: Redid the loop a bit]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c