diff options
author | sam <sam@FreeBSD.org> | 2005-03-19 04:34:23 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-03-19 04:34:23 +0000 |
commit | efb9d71d393fb63a0aa0b5a85bdea8bf6f3690d3 (patch) | |
tree | 36489344a1e6680a6b9a61f585c5e976dd6f4e17 /sys/kern/sysv_sem.c | |
parent | ab3293eabd9d9cbe973eaa911790e617347859d9 (diff) | |
download | FreeBSD-src-efb9d71d393fb63a0aa0b5a85bdea8bf6f3690d3.zip FreeBSD-src-efb9d71d393fb63a0aa0b5a85bdea8bf6f3690d3.tar.gz |
check copyin return value
Noticed by: Coverity Prevent analysis tool
Diffstat (limited to 'sys/kern/sysv_sem.c')
-rw-r--r-- | sys/kern/sysv_sem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index b406f98..48d20a1 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -787,7 +787,7 @@ raced: if ((error = copyin(arg, &real_arg, sizeof(real_arg))) != 0) goto done2; array = malloc(sizeof(*array) * count, M_TEMP, M_WAITOK); - copyin(real_arg.array, array, count * sizeof(*array)); + error = copyin(real_arg.array, array, count * sizeof(*array)); if (error) break; mtx_lock(sema_mtxp); |