RE: [patch 3/2] Staging: sst: more copy_to_user() changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Vinod wanted the copy_to_user() calls in this format:
> 	if (copy_to_user())
> 		retval = -EFAULT;
> instead of this:
> 	retval = copy_to_user();
> 	if (retval)
> 		retval = -EFAULt;
> 
> I've done that for the whole intel_sst_app_interface.c file.  In the
> process I noticed a couple more places that returned -EBUSY or -EAGAIN
> instead of -EFAULT.
> 
> Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>
>
Acked-by: Harsha Priya <priya.harsha@xxxxxxxxx>
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux