# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.866 -> 1.867 # drivers/ide/ide-cd.c 1.32 -> 1.33 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/11/08 axboe@burns.home.kernel.dk 1.867 # o Correct printk() format, from Marcelo Roberto Jimenez # o Check for NULL address in cdrom_newpc_intr() and bail # -------------------------------------------- # diff -Nru a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c --- a/drivers/ide/ide-cd.c Fri Nov 8 09:49:19 2002 +++ b/drivers/ide/ide-cd.c Fri Nov 8 09:49:19 2002 @@ -1469,7 +1469,7 @@ } else { confused: printk ("%s: cdrom_pc_intr: The drive " - "appears confused (ireason = 0x%2x)\n", + "appears confused (ireason = 0x%02x)\n", drive->name, ireason); rq->flags |= REQ_FAILED; } @@ -1722,6 +1722,11 @@ blen = bio_iovec(rq->bio)->bv_len; } + if (!ptr) { + printk("%s: confused, missing data\n", drive->name); + break; + } + if (blen > thislen) blen = thislen; @@ -1741,8 +1746,6 @@ * pad, if necessary */ if (len) { - printk("%s: padding %u bytes\n", drive->name, len); - while (len) { int pad = 0;