mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Check the return value of copyin.
Found by: Coverity Prevent (tm)
This commit is contained in:
parent
30e3426947
commit
a4d3c74487
1 changed files with 2 additions and 1 deletions
|
|
@ -531,7 +531,8 @@ amr_linux_ioctl_int(struct cdev *dev, u_long cmd, caddr_t addr, int32_t flag,
|
|||
ac = NULL;
|
||||
ap = NULL;
|
||||
|
||||
copyin(addr, &ali, sizeof(ali));
|
||||
if ((error = copyin(addr, &ali, sizeof(ali))) != 0)
|
||||
return (error);
|
||||
switch (ali.ui.fcs.opcode) {
|
||||
case 0x82:
|
||||
switch(ali.ui.fcs.subopcode) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue