Commit 34e226a2 authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

drivers/testing: heapcheck: silence UMR warning (false positive)

Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 3fb46693
......@@ -449,7 +449,7 @@ static int heapcheck_ioctl(struct rtdm_fd *fd,
struct rttst_heap_stathdr sthdr;
struct rttst_heap_parms parms;
int ret;
switch (request) {
case RTTST_RTIOC_HEAP_CHECK:
ret = rtdm_copy_from_user(fd, &parms, arg, sizeof(parms));
......@@ -464,6 +464,7 @@ static int heapcheck_ioctl(struct rtdm_fd *fd,
ret = rtdm_copy_to_user(fd, arg, &parms, sizeof(parms));
break;
case RTTST_RTIOC_HEAP_STAT_COLLECT:
sthdr.buf = NULL;
ret = rtdm_copy_from_user(fd, &sthdr, arg, sizeof(sthdr));
if (ret)
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment