Home
last modified time | relevance | path

Searched hist:"355 e62f5" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/of/
H A Dirq.c355e62f5 Sat Nov 02 02:11:02 CDT 2013 Grant Likely <grant.likely@linaro.org> of/irq: Fix potential buffer overflow

Commit 2361613206e6, "of/irq: Refactor interrupt-map parsing" introduced
a potential buffer overflow bug because it doesn't do sufficient range
checking on the input data. This patch adds the appropriate checking and
buffer size adjustments. If the bounds are out of range then warn
loudly. MAX_PHANDLE_ARGS should be sufficient. If it is not then the
value can be increased.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>