Skip to content
Commit 9afcc71b authored by Max Filippov's avatar Max Filippov
Browse files

xtensa: fix error paths in __get_user_{check,size}



Error paths in __get_user_check and __get_user_size directly assing 0 to
the result. It causes the following sparse warnings:

  sparse: warning: Using plain integer as NULL pointer

Convert 0 to the type pointed to by the user pointer before assigning it.

Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent c22f9075
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment