]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio: balloon: fix missing unlock on error in fill_balloon()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 15 Nov 2012 02:37:53 +0000 (13:37 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:25:49 +0000 (17:25 +1100)
commit7c9b7ac66be7211df8decc956317a9a8d99eb942
tree863964ed049096df53d12c157e28b27bddc19689
parent8792553734010d46fa905a49c62164003aa0aa3b
virtio: balloon: fix missing unlock on error in fill_balloon()

Add the missing unlock before return from function fill_balloon()
in the error handling case.

Introduced by 9864a8 ("virtio_balloon: introduce migration primitives to
balloon pages").

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/virtio/virtio_balloon.c