fix mcctrl SMAP - everyone needs copy_to_user

This commit is contained in:
Dominique Martinet
2018-04-03 10:38:44 +09:00
parent 12e44050c9
commit 4572e6be3f

View File

@ -1390,7 +1390,6 @@ retry_alloc:
goto put_ppd_out;
}
#ifdef POSTK_DEBUG_ARCH_DEP_46 /* user area direct access fix. */
if (copy_to_user(&req->cpu, &packet->ref, sizeof(req->cpu))) {
if (mcctrl_delete_per_thread_data(ppd, current) < 0) {
kprintf("%s: error deleting per-thread data\n", __FUNCTION__);
@ -1398,9 +1397,6 @@ retry_alloc:
ret = -EINVAL;
goto put_ppd_out;
}
#else /* POSTK_DEBUG_ARCH_DEP_46 */
req->cpu = packet->ref;
#endif /* POSTK_DEBUG_ARCH_DEP_46 */
ret = 0;
goto put_ppd_out;