OSDN Git Service

staging: gasket: avoid copy to user on error in coherent alloc config
authorTodd Poynor <toddpoynor@google.com>
Sat, 21 Jul 2018 13:34:57 +0000 (06:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jul 2018 11:56:45 +0000 (13:56 +0200)
commit5c4a5d3ddd724d1c4f27c3b52ad0980c4c750999
tree3f3c2ad9f5f5d498c3ea026dfbf878cf12701f28
parent8fc1cb4cef287fd61391adcc48f4a6bdc369bf49
staging: gasket: avoid copy to user on error in coherent alloc config

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 <dtor@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_ioctl.c