mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
1a98c69af1
561 changed files with 5001 additions and 3110 deletions
|
|
@ -2059,13 +2059,17 @@ static int l3ni1_cmd_global(struct PStack *st, isdn_ctrl *ic)
|
|||
memcpy(p, ic->parm.ni1_io.data, ic->parm.ni1_io.datalen); /* copy data */
|
||||
l = (p - temp) + ic->parm.ni1_io.datalen; /* total length */
|
||||
|
||||
if (ic->parm.ni1_io.timeout > 0)
|
||||
if (!(pc = ni1_new_l3_process(st, -1)))
|
||||
{ free_invoke_id(st, id);
|
||||
if (ic->parm.ni1_io.timeout > 0) {
|
||||
pc = ni1_new_l3_process(st, -1);
|
||||
if (!pc) {
|
||||
free_invoke_id(st, id);
|
||||
return (-2);
|
||||
}
|
||||
pc->prot.ni1.ll_id = ic->parm.ni1_io.ll_id; /* remember id */
|
||||
pc->prot.ni1.proc = ic->parm.ni1_io.proc; /* and procedure */
|
||||
/* remember id */
|
||||
pc->prot.ni1.ll_id = ic->parm.ni1_io.ll_id;
|
||||
/* and procedure */
|
||||
pc->prot.ni1.proc = ic->parm.ni1_io.proc;
|
||||
}
|
||||
|
||||
if (!(skb = l3_alloc_skb(l)))
|
||||
{ free_invoke_id(st, id);
|
||||
|
|
|
|||
|
|
@ -442,7 +442,7 @@ static int get_filter(void __user *arg, struct sock_filter **p)
|
|||
{
|
||||
struct sock_fprog uprog;
|
||||
struct sock_filter *code = NULL;
|
||||
int len, err;
|
||||
int len;
|
||||
|
||||
if (copy_from_user(&uprog, arg, sizeof(uprog)))
|
||||
return -EFAULT;
|
||||
|
|
@ -458,12 +458,6 @@ static int get_filter(void __user *arg, struct sock_filter **p)
|
|||
if (IS_ERR(code))
|
||||
return PTR_ERR(code);
|
||||
|
||||
err = sk_chk_filter(code, uprog.len);
|
||||
if (err) {
|
||||
kfree(code);
|
||||
return err;
|
||||
}
|
||||
|
||||
*p = code;
|
||||
return uprog.len;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue