Commit fcd4b4d0 authored by Edward Falk's avatar Edward Falk Committed by Linus Torvalds

[PATCH] fix typo in cdrom.c

Bug in dvd_read_manufact found by inspection.

Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 17935c9f
......@@ -1876,7 +1876,7 @@ static int dvd_read_manufact(struct cdrom_device_info *cdi, dvd_struct *s)
s->manufact.len = buf[0] << 8 | buf[1];
if (s->manufact.len < 0 || s->manufact.len > 2048) {
cdinfo(CD_WARNING, "Received invalid manufacture info length"
" (%d)\n", s->bca.len);
" (%d)\n", s->manufact.len);
ret = -EIO;
} else {
memcpy(s->manufact.value, &buf[4], s->manufact.len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment