Drivers: hv: utils: use memdup_user in hvt_op_write
authorOlaf Hering <olaf@aepfle.de>
Tue, 15 Dec 2015 00:01:37 +0000 (16:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Dec 2015 03:12:21 +0000 (19:12 -0800)
commitb00359642c2427da89dc8f77daa2c9e8a84e6d76
treeb028b339fb4e2b4e02bb9ce1519b53e2f84950ae
parentcdc0c0c94e4e6dfa371d497a3130f83349b6ead6
Drivers: hv: utils: use memdup_user in hvt_op_write

Use memdup_user to handle OOM.

Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction')

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_utils_transport.c