ide-features.c: unchecked kmalloc
PATCH 1/1 ide-features.c: unchecked kmalloc
Hi,
Please consider applying.
- Arnaldo
drivers/ide/ide-features.c +4 -0
@@ -189,6 +189,10 @@__cli ();/* local CPU only; some systems need this */ SELECT_MASK (HWIF (drive), drive,0 ); id =kmalloc (SECTOR_WORDS *4 ,GFP_ATOMIC ); +if (!id) { +__restore_flags (flags);/* local CPU only */ +return 0 ; + }ide_input_data (drive, id,SECTOR_WORDS ); (void )GET_STAT ();/* clear drive IRQ */ ide__sti ();/* local CPU only */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Please name a time or event when you would cal a setfeaturers command without having a IDENTIFY page filled?
Quoted 10 lines · Arnaldo Carvalho de Melo
Hi,
Please consider applying.
- Arnaldo
drivers/ide/ide-features.c line 198
Quoted 10 lines
drivers/ide/ide-features.c +4
-0@@ -189,6 +189,10 @@__cli ();/* local CPU only; some systems need this */ SELECT_MASK (HWIF (drive), drive,0 ); id =kmalloc (SECTOR_WORDS *4 ,GFP_ATOMIC ); +if (!id) { +__restore_flags (flags);/* local CPU only */ +return 0 ; + }ide_input_data (drive, id,SECTOR_WORDS ); (void )GET_STAT ();/* clear drive IRQ */ ide__sti ();/* local CPU only */
Andre Hedrick
Linux ATA Development
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/