From: Dan Carpenter Date: Sun, 19 May 2013 08:36:36 +0000 (+0000) Subject: isdn/kcapi: fix a small underflow X-Git-Tag: v3.10-rc3~18^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25dff94ff9df40d4d663bb6ea3193a7758cc50e5;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed