commit | 25dff94ff9df40d4d663bb6ea3193a7758cc50e5 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sun May 19 08:36:36 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon May 20 13:38:14 2013 -0700 |
tree | 2371e9c1dea647c690a2b01255d462656a8393ce | |
parent | 057cf65e4f715f62acccbd9125cf63eddfe69d30 [diff] |
isdn/kcapi: fix a small underflow In get_capi_ctr_by_nr() and get_capi_appl_by_nr() the parameter comes from skb->data. The current code can underflow to one space before the start of the array. The sanity check isn't needed in __get_capi_appl_by_nr() but I changed it to match the others. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>