From: Dan Carpenter Date: Thu, 3 Apr 2014 07:21:34 +0000 (+0300) Subject: irqchip: irq-crossbar: Not allocating enough memory X-Git-Tag: omap-for-v3.16/pm-signed~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3894e9e82dfdc87fa35dc7976e0472d220228826;p=pandora-kernel.git irqchip: irq-crossbar: Not allocating enough memory We are allocating the size of a pointer and not the size of the data. This will lead to memory corruption. There isn't actually a "cb_device" struct, btw. The code is only able to compile because GCC knows that all pointers are the same size. Fixes: 96ca848ef7ea ('DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP') Signed-off-by: Dan Carpenter Acked-by: Sricharan R Cc: Grant Likely Cc: Rob Herring Link: http://lkml.kernel.org/r/20140403072134.GA14286@mwanda Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed