]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/ide/ide-floppy.c
ide-atapi: add a buffer-arg to ide_queue_pc_tail
authorBorislav Petkov <petkovbb@gmail.com>
Sat, 2 May 2009 08:26:12 +0000 (10:26 +0200)
committerBorislav Petkov <petkovbb@gmail.com>
Fri, 15 May 2009 04:44:09 +0000 (06:44 +0200)
commitb13345f39dadbabdabaf8819cf6df26913da9e8d
tree535a81fdf7d71c632fe759c689f4a7d4a5c70399
parent5a0e43b5e2ee9a295f864c38f0e853b1a4fc3892
ide-atapi: add a buffer-arg to ide_queue_pc_tail

This is in preparation of removing ide_atapi_pc. Expose the buffer as an
argument to ide_queue_pc_tail with later replacing it with local buffer
or even kmalloc'ed one if needed due to stack usage constraints.

Also, add the possibility of passing a NULL-ptr buffer for cmds which
don't transfer data besides the cdb. While at it, switch to local buffer
in idetape_get_mode_sense_results().

There should be no functional change resulting from this patch.

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