poll: modify the function z_vrfy_k_poll
Removing the 'U' to avoid the type of num_events changed. And make sure it is meaningful Z_SYSCALL_VERIFY micro. Fixed #40614 Signed-off-by: NingX Zhao <ningx.zhao@intel.com>
This commit is contained in:
parent
d2cdee5b25
commit
5287ce8ff0
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ static inline int z_vrfy_k_poll(struct k_poll_event *events,
|
||||||
/* Validate the events buffer and make a copy of it in an
|
/* Validate the events buffer and make a copy of it in an
|
||||||
* allocated kernel-side buffer.
|
* allocated kernel-side buffer.
|
||||||
*/
|
*/
|
||||||
if (Z_SYSCALL_VERIFY(num_events >= 0U)) {
|
if (Z_SYSCALL_VERIFY(num_events >= 0)) {
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue