Commit 06b446c8 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Revert "Staging: comedi: integer overflow in do_insnlist_ioctl()"

This reverts commit e384a411.
It's not the correct way to solve this issue.
Acked-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e384a411
......@@ -670,11 +670,6 @@ static int do_insnlist_ioctl(struct comedi_device *dev,
goto error;
}
if (sizeof(struct comedi_insn) * insnlist.n_insns < insnlist.n_insns) {
ret = -EINVAL;
goto error;
}
insns =
kmalloc(sizeof(struct comedi_insn) * insnlist.n_insns, GFP_KERNEL);
if (!insns) {
......
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