From: Jan Beulich Date: Mon, 24 Sep 2012 14:55:37 +0000 (+0100) Subject: xen-pciback: properly clean up after calling pcistub_device_find() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~30^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6aa70a0d5511296ea3d5fd1f5e2203ff6898107;p=pandora-kernel.git xen-pciback: properly clean up after calling pcistub_device_find() As the function calls pcistub_device_get() before returning non-NULL, its callers need to take care of calling pcistub_device_put() on (mostly, but not exclusively) error paths. Otoh, the function already guarantees that the 'dev' member is non-NULL upon successful return, so callers do not need to check for this a second time. Signed-off-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed