On 7/27/19 5:37 AM, Douglas Gilbert wrote: > Since access_ok() has lost it direction (3rd) parameter there > seems to be no benefit in calling access_ok() before > __copy_{to|from}_user(). Simplify code by using the variant of > these functions that do not start with "__". > > Signed-off-by: Douglas Gilbert <dgilbert@xxxxxxxxxxxx> > --- > drivers/scsi/sg.c | 50 ++++++++++++++++------------------------------- > 1 file changed, 17 insertions(+), 33 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)