KVM: s390: Use memdup_user() rather than duplicating code
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 24 Aug 2016 18:10:09 +0000 (20:10 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 8 Sep 2016 11:40:55 +0000 (13:40 +0200)
commit0624a8eb82efd58e457093e8fd4514abd3b37cc0
tree247cc627c8a6b14cd29b5adbcd60f11f962841a0
parenta1708a2eaded836b7fe64e89a137336c0e6244ea
KVM: s390: Use memdup_user() rather than duplicating code

* Reuse existing functionality from memdup_user() instead of keeping
  duplicate source code.

  This issue was detected by using the Coccinelle software.

* Return directly if this copy operation failed.

Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Message-Id: <c86f7520-885e-2829-ae9c-b81caa898e84@users.sourceforge.net>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/guestdbg.c