drivers: can: use correct size in z_vrfy_can_get_core_clock()
Use the correct size in z_vrfy_can_get_core_clock(). Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
372cee4268
commit
3874a0d1e3
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ static inline int z_vrfy_can_get_core_clock(const struct device *dev,
|
|||
uint32_t *rate)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_CAN(dev, get_core_clock));
|
||||
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(rate, sizeof(rate)));
|
||||
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(rate, sizeof(*rate)));
|
||||
|
||||
return z_impl_can_get_core_clock(dev, rate);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue