mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
Merge "msm: adsprpc: Typecast return value of copy_to_user API"
This commit is contained in:
commit
250cb427bd
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#ifndef ADSPRPC_SHARED_H
|
||||
#define ADSPRPC_SHARED_H
|
||||
|
|
@ -138,7 +138,7 @@ do {\
|
|||
#define K_COPY_TO_USER_WITHOUT_ERR(kernel, dst, src, size) \
|
||||
do {\
|
||||
if (!(kernel))\
|
||||
copy_to_user((void __user *)(dst),\
|
||||
(void)copy_to_user((void __user *)(dst),\
|
||||
(src), (size));\
|
||||
else\
|
||||
memmove((dst), (src), (size));\
|
||||
|
|
|
|||
Loading…
Reference in a new issue