]> git.hungrycats.org Git - linux/commit
[PATCH] cdrom: buffer sizing fix
authorPeter Osterlund <petero2@telia.com>
Tue, 19 Oct 2004 00:57:46 +0000 (17:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 00:57:46 +0000 (17:57 -0700)
commit66d5cab9f5225a0fe501305016129110d580d688
tree78094da873acca726d1cc1049e6da662f07cb08f
parent2f8e2dc86c9876edca632e8ef2ab1f68d1b753f0
[PATCH] cdrom: buffer sizing fix

The problem is that some drives fail the "GET CONFIGURATION" command when
asked to only return 8 bytes.  This happens for example on my drive, which
is identified as:

        hdc: HL-DT-ST DVD+RW GCA-4040N, ATAPI CD/DVD-ROM drive

Since the cdrom_mmc3_profile() function already allocates 32 bytes for the
reply buffer, this patch is enough to make the command succeed on my drive.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cdrom/cdrom.c