From: Jens Freimann Date: Mon, 16 Mar 2015 11:17:13 +0000 (+0100) Subject: KVM: s390: fix get_all_floating_irqs X-Git-Tag: omap-for-v4.2/o2_dc~192^2~19^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94aa033efcac47b09db22cb561e135baf37b7887;p=pandora-kernel.git KVM: s390: fix get_all_floating_irqs This fixes a bug introduced with commit c05c4186bbe4 ("KVM: s390: add floating irq controller"). get_all_floating_irqs() does copy_to_user() while holding a spin lock. Let's fix this by filling a temporary buffer first and copy it to userspace after giving up the lock. Cc: # 3.18+: 69a8d4562638 KVM: s390: no need to hold... Reviewed-by: David Hildenbrand Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger Acked-by: Cornelia Huck --- Reading git-diff-tree failed