diff options
| author | 2018-02-22 12:15:34 +0300 | |
|---|---|---|
| committer | 2018-02-22 15:07:44 +0100 | |
| commit | a139834ed6ce795691106e35d287226c95c75866 (patch) | |
| tree | 49525e754f10e88ceaa4606a80f24260a109755d /include/linux | |
| parent | staging: lustre: socklnd: simplify ksnc_rx_iov_space (diff) | |
staging: lustre: selftest: freeing an error pointer
We should just return directly if memdup_user() fails. The current code
tries to free "param" which is an error pointer so it will Oops.
Fixes: 2baddf262e98 ("staging: lustre: use memdup_user to allocate memory and copy from user")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
