From: Wei Yongjun Date: Tue, 23 Apr 2013 02:44:35 +0000 (+0800) Subject: mei: fix krealloc() misuse in in mei_cl_irq_read_msg() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~139^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46e407dd349c5ffbb869f5999fa596d1e08f2810;p=pandora-kernel.git mei: fix krealloc() misuse in in mei_cl_irq_read_msg() If krealloc() returns NULL, it doesn't free the original. So any code of the form 'foo = krealloc(foo, ...);' is almost certainly a bug. Introduced by commit fcb136e1ac5774909e0d85189f721b8dfa800e0f(mei: fix reading large reposnes) Signed-off-by: Wei Yongjun Acked-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed