diff options
author | Andrew Morton <[email protected]> | 2011-08-02 12:43:50 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2011-08-02 12:43:50 +0200 |
commit | aec9f377e4f235c47e27fd8a429555dfa2dda342 (patch) | |
tree | 5efa73cf8d0a150a69a66f01e40fb130b35a2bc4 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ddad9ef5826efdfbbdb67b13b46f30e43e46ec3e (diff) |
drivers/cdrom/cdrom.c: relax check on dvd manufacturer value
The report has an ISO which has a very long manufacturer ID. It seems
that Linux is wrong, not the ISO maker.
Relax the check for the length of this field: emit a warning and truncate
the incoming data to 2048 bytes rather than rejecting the entire thing.
dvd_manufact.value isn't null-terminated. I'm not even sure if it's a
string. The kernel doesn't apepar to use it anyway.
Addresses https://bugzilla.kernel.org/show_bug.cgi?id=39062
Reported-by: <[email protected]>
Tested-by: <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions