]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: decrease size of ->pc_buf field in struct ide_atapi_pc
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 31 Mar 2009 18:15:25 +0000 (20:15 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 31 Mar 2009 18:15:25 +0000 (20:15 +0200)
commit41fa9f863baacd32dd049daf8050d55a0c9e6f1a
tree44cc612753746cd459e122f102c72f33b36aa6b7
parentb5479167f4206e0d821a51ae149d921cd7a58e54
ide: decrease size of ->pc_buf field in struct ide_atapi_pc

struct ide_atapi_pc is often allocated on the stack and size of ->pc_buf
size is 256 bytes.  However since only ide_floppy_create_read_capacity_cmd()
and idetape_create_inquiry_cmd() require such size allocate buffers for
these pc-s explicitely and decrease ->pc_buf size to 64 bytes.

Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-floppy.c
drivers/ide/ide-floppy_ioctl.c
drivers/ide/ide-tape.c
include/linux/ide.h