]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mISDN: return -EINVAL on error in dsp_control_req()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Aug 2013 08:47:00 +0000 (11:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2013 21:52:44 +0000 (17:52 -0400)
commit0d63c27d9e879a0b54eb405636d60ab12040ca46
treedd6f8abace89f2bd7b4c0bf988439eccc3956691
parent702821f4ea6f68db18aa1de7d8ed62c6ba586a64
mISDN: return -EINVAL on error in dsp_control_req()

If skb->len is too short then we should return an error.  Otherwise we
read beyond the end of skb->data for several bytes.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/dsp_core.c