From: Dan Carpenter Date: Fri, 3 Jul 2015 08:53:03 +0000 (+0300) Subject: mptfusion: prevent some memory corruption X-Git-Tag: omap-for-v4.3/fixes-rc1~115^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e819cdb198319cccf4af4fc12ac4d796109d8c23;p=pandora-kernel.git mptfusion: prevent some memory corruption These are signed values the come from the user, we put a cap on the upper bounds but not on the lower bounds. We use "karg.dataSgeOffset" to calculate "sz". We verify "sz" and proceed as if that means that "karg.dataSgeOffset" is correct but this fails to consider that the "sz" calculations can have integer overflows. Signed-off-by: Dan Carpenter Reviewed-by: Johannes Thumshirn Signed-off-by: James Bottomley --- Reading git-diff-tree failed