misc: mic: fix incorrect use of error codes in SCIF DMA driver
authorEric Biggers <ebiggers3@gmail.com>
Sat, 12 Dec 2015 02:09:16 +0000 (20:09 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 05:25:50 +0000 (21:25 -0800)
commitd40a09464401265e2894061cca388fb86e05b4be
tree412d786c8f8e1695b8eea3f9e290a05f8a39971f
parent0d0ce9c00b866090a69a2d63118b3e09cc71c96d
misc: mic: fix incorrect use of error codes in SCIF DMA driver

The error code passed to ERR_PTR() always should be negated.  Also, the
return value of scif_add_mmu_notifier() was never checked.

Signed-off-by: Eric Biggers <ebiggers3@gmail.com>
Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/scif/scif_dma.c