Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Minor conflict in r8169, bug fix had two versions in net and net-next, take the net-next hunks. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -4410,6 +4410,10 @@ static int qeth_snmp_command(struct qeth_card *card, char __user *udata)
|
||||
get_user(req_len, &ureq->hdr.req_len))
|
||||
return -EFAULT;
|
||||
|
||||
/* Sanitize user input, to avoid overflows in iob size calculation: */
|
||||
if (req_len > QETH_BUFSIZE)
|
||||
return -EINVAL;
|
||||
|
||||
iob = qeth_get_adapter_cmd(card, IPA_SETADP_SET_SNMP_CONTROL, req_len);
|
||||
if (!iob)
|
||||
return -ENOMEM;
|
||||
|
Reference in New Issue
Block a user