xen-gntdev: unlock on error path in gntdev_mmap()
authorDan Carpenter <error27@gmail.com>
Sat, 19 Mar 2011 05:45:43 +0000 (08:45 +0300)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 24 Mar 2011 14:32:45 +0000 (10:32 -0400)
commita93e20a83077f57638f8574b1c072ce6712e95ec
tree1cb7c814949381ae44638ca9bd62c81432c94abf
parent12f0258d5b44b3b5a9442ec461bbac1f7edab8c6
xen-gntdev: unlock on error path in gntdev_mmap()

We should unlock here and also decrement the number of &map->users.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntdev.c