]> git.karo-electronics.de Git - karo-tx-linux.git/commit
The report has an ISO which has a very long manufacturer ID. It seems
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 26 Jul 2011 10:14:49 +0000 (20:14 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 29 Jul 2011 05:49:13 +0000 (15:49 +1000)
commit4708e0b00cc54585fa752071a3164131f00a023d
treeb2f84d8fb532fd34620b48affc7717e831ff2f23
parentfeb694144c51b300480b10267d63e4f4eb3927ff
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: <ale.goujon@gmail.com>
Tested-by: <ale.goujon@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/cdrom/cdrom.c