]> git.baikalelectronics.ru Git - kernel.git/commit
via-ircc: Pass PCI device pointer to dma_{alloc, free}_coherent()
authorBen Hutchings <ben@decadent.org.uk>
Mon, 28 Mar 2011 17:12:52 +0000 (17:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Mar 2011 07:12:33 +0000 (00:12 -0700)
commit58402c47099c0dcaf5b51ba1a2ead3aaa15ea061
tree9f09b2f889c91b448ae9cfe9622450930f7b1edd
parent72200728e551121e3103584afd0154d619bb8cc5
via-ircc: Pass PCI device pointer to dma_{alloc, free}_coherent()

via-ircc has been passing a NULL pointer to DMA allocation functions,
which is completely invalid and results in a BUG on PowerPC.  Now
that we always have the device pointer available, pass it in.

Reference: http://bugs.debian.org/619450
Reported-by: Andrew Buckeridge <andrewb@bgc.com.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Tested-by: Andrew Buckeridge <andrewb@bgc.com.au> [against 2.6.32]
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/via-ircc.c