]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
I/OAT: fix null device in call to dev_err()
authorShannon Nelson <shannon.nelson@intel.com>
Tue, 18 Dec 2007 00:20:08 +0000 (16:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 18 Dec 2007 03:28:17 +0000 (19:28 -0800)
commitbb8e8bcce7eceacb52eb0a3ebb64202ad6bcc438
treebe4aec4e38ff481f4e65f3af077ef49e7a7a9eac
parent711924b1052a280bd2452c3babb9816e4a77c723
I/OAT: fix null device in call to dev_err()

We can't use the device in a dev_err() after a kzalloc failure or after the
kfree, so simplify it to the pdev that was originally passed in.

Cc: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/dma/ioat_dma.c