From: Dan Carpenter Date: Fri, 1 Mar 2013 05:14:19 +0000 (+0300) Subject: usb: storage: onetouch: tighten a range check X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~255 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bba90aedb00906a2f0d34325610729a1ee016f43;p=pandora-kernel.git usb: storage: onetouch: tighten a range check Smatch complains because we only allocate ONETOUCH_PKT_LEN (2) bytes but later when we call usb_fill_int_urb() we assume maxp can be up to 8 bytes. I talked to the maintainer and maxp should be capped at ONETOUCH_PKT_LEN. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed