xen-gntdev: Fix memory leak when mmap fails
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 3 Feb 2011 19:16:54 +0000 (14:16 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 14 Feb 2011 19:16:18 +0000 (14:16 -0500)
commit90b6f30548a52f3a59cda5c7db0b9c2a99ebb156
tree837d46817deaab8185dae5c003038041ad888b0b
parentbdc612dc6903c4ea06e40d02f84ad5e25d93459d
xen-gntdev: Fix memory leak when mmap fails

The error path did not decrement the reference count of the grant structure.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntdev.c