[PATCH 04/14] staging: gasket: avoid copy to user on error in coherent alloc config

2018-07-21 Thread Todd Poynor
From: Todd Poynor gasket_config_coherent_allocator() on error return the error to caller without copying a possibly-update DMA address back to userspace. Reported-by: Dmitry Torokhov Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_ioctl.c | 4 +++- 1 file changed, 3 insertions(+)

[PATCH 04/14] staging: gasket: avoid copy to user on error in coherent alloc config

2018-07-21 Thread Todd Poynor
From: Todd Poynor gasket_config_coherent_allocator() on error return the error to caller without copying a possibly-update DMA address back to userspace. Reported-by: Dmitry Torokhov Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_ioctl.c | 4 +++- 1 file changed, 3 insertions(+)