Re: [PATCH] misc: mic: fix incorrect use of error codes in SCIF DMA driver

2015-12-11 Thread Sudeep Dutt
On Fri, 2015-12-11 at 20:09 -0600, Eric Biggers wrote: > The error code passed to ERR_PTR() always should be negated. Also, the > return value of scif_add_mmu_notifier() was never checked. > Thanks for the patch Eric. Reviewed-by: Sudeep Dutt > Signed-off-by: Eric Biggers > --- > drivers/mi

[PATCH] misc: mic: fix incorrect use of error codes in SCIF DMA driver

2015-12-11 Thread Eric Biggers
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 --- drivers/misc/mic/scif/scif_dma.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/misc/mic/