From: Michael S. Tsirkin Date: Sun, 28 Apr 2013 14:12:08 +0000 (+0300) Subject: vhost: fix error handling in RESET_OWNER ioctl X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=150b9e51ae975ca1fe468c565870fbc4a96e0574;p=pandora-kernel.git vhost: fix error handling in RESET_OWNER ioctl RESET_OWNER ioctl would leave the fd in a bad state if memory allocation failed: device is stopped but owner is not reset. Make state changes after allocating memory, such that a failed ioctl has no effect. Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed