]> git.baikalelectronics.ru Git - kernel.git/commit
mei: fix krealloc() misuse in in mei_cl_irq_read_msg()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 23 Apr 2013 02:44:35 +0000 (10:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Apr 2013 17:29:58 +0000 (10:29 -0700)
commit675d9f736904883e2ec62aea2f044fb3690f66a7
tree3167c1c48ca29d037cb49b02be634a883f7d1854
parentbb284cb9e41652d83e1ebd6bf83250adbbeff25d
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 f418b12e05b951103c4af9e4c0d2a9f95497e8e9(mei: fix
reading large reposnes)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/interrupt.c