summaryrefslogtreecommitdiffstats
path: root/drivers/of/of_pci_irq.c
diff options
context:
space:
mode:
authorGrant Likely2013-11-02 08:11:02 +0100
committerGrant Likely2013-11-04 00:16:43 +0100
commit355e62f5ad12b005c862838156262eb2df2f8dff (patch)
tree21263268a1e0a9e07680c027f406d42e4d85e268 /drivers/of/of_pci_irq.c
parentof/irq: Fix bug in interrupt parsing refactor. (diff)
downloadkernel-qcow2-linux-355e62f5ad12b005c862838156262eb2df2f8dff.tar.gz
kernel-qcow2-linux-355e62f5ad12b005c862838156262eb2df2f8dff.tar.xz
kernel-qcow2-linux-355e62f5ad12b005c862838156262eb2df2f8dff.zip
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>
Diffstat (limited to 'drivers/of/of_pci_irq.c')
0 files changed, 0 insertions, 0 deletions