]> git.hungrycats.org Git - linux/commit
[PATCH] cdrom hardware defect mgt header length
authorAndrew Morton <akpm@osdl.org>
Wed, 9 Jun 2004 01:17:58 +0000 (18:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 9 Jun 2004 01:17:58 +0000 (18:17 -0700)
commita57867c3752064d8e9817daabe3ba098c3d93147
treea1a47f1c808bc7f34495c61738e13017c85569db
parent7b6bc1f8b6a92ad77d8859374a5c1c2fee0b74f8
[PATCH] cdrom hardware defect mgt header length

From: Jens Axboe <axboe@suse.de>

cdrom_has_defect_mgt() has the same ->data_len bug - the length field is
not total length, but the length following that field.  So it should be +
4, not + 8.  However, just kill the length check.  Comparison of
feature_code provides enough check.

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