aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorWill Newton <[email protected]>2012-03-30 11:51:02 +0100
committerDavid Woodhouse <[email protected]>2012-05-07 20:29:50 +0100
commit7a84477c4acebf6299b6a8bd6a1d5894eb838ffa (patch)
tree7ead0857a87874bb3362953d5fb55749f88903de /tools/perf/scripts/python/Perf-Trace-Util
parent66f75a5d028beaf67c931435fdc3e7823125730c (diff)
mtd: fix oops in dataflash driver
I'm seeing an oops in mtd_dataflash.c with Linux 3.3. What appears to be happening is that otp_select_filemode calls mtd_read_fact_prot_reg with -1 for offset and length and a NULL buffer to test if OTP operations are supported. This finds its way down to otp_read in mtd_dataflash.c and causes an oops when memcpying the returned data into the NULL buf. None of the checks in otp_read catches the negative length and offset. Changing the length of the dummy read to 0 prevents the oops. Cc: [email protected] [3.3+] Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions