]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: gdth: remove gdth_{alloc,free}_ioctl
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Dec 2018 07:41:20 +0000 (08:41 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Jan 2019 02:57:42 +0000 (21:57 -0500)
commit8445f91864a95674bd0a56727691e5a6a8ebbc0e
tree458917b2f6ad4ca44e87f30b83220815f2ba65cb
parent1cba01eba544d50504a2934b4889e2f0941bbd98
scsi: gdth: remove gdth_{alloc,free}_ioctl

Out of the three callers once insists on the scratch buffer, and the
others are fine with a new allocation.  Switch those two to just use
pci_alloc_consistent directly, and open code the scratch buffer
allocation in the remaining one.  This avoids a case where we might
be doing a memory allocation under a spinlock with irqs disabled.

[mkp: typo]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/gdth.c
drivers/scsi/gdth_proc.c
drivers/scsi/gdth_proc.h