aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorClemens Ladisch <[email protected]>2009-12-21 15:36:44 -0800
committerGreg Kroah-Hartman <[email protected]>2009-12-23 11:34:11 -0800
commitac06c06770bb8761b1f1f9bdf2f5420fa6d3e9fa (patch)
tree9119d4de2abbb3796b278e2e21d8c1eebcddae31 /tools/perf/scripts/python
parent27f1281d5f72e4f161e215ccad3d7d86b9e624a9 (diff)
USB: emi62: fix crash when trying to load EMI 6|2 firmware
While converting emi62 to use request_firmware(), the driver was also changed to use the ihex helper functions. However, this broke the loading of the FPGA firmware because the code tries to access the addr field of the EOF record which works with a plain array that has an empty last record but not with the ihex helper functions where the end of the data is signaled with a NULL record pointer, resulting in: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [<f80d248c>] emi62_load_firmware+0x33c/0x740 [emi62] This can be fixed by changing the loop condition to test the return value of ihex_next_binrec() directly (like in emi26.c). Signed-off-by: Clemens Ladisch <[email protected]> Reported-and-tested-by: Der Mickster <[email protected]> Acked-by: David Woodhouse <[email protected]> Cc: stable <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions