diff options
| author | Gustavo A. R. Silva <[email protected]> | 2018-04-13 15:13:29 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2018-04-17 19:44:30 +0000 |
| commit | 0d568cd34eb04acf05c26f360d1a0f071f0bb636 (patch) | |
| tree | a044c5c68f8451cf9f87e3fea4b6d1272bd12750 /drivers/fpga/fpga-region.c | |
| parent | Merge branch 'parisc-4.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
| download | kernel-0d568cd34eb04acf05c26f360d1a0f071f0bb636.tar.gz kernel-0d568cd34eb04acf05c26f360d1a0f071f0bb636.zip | |
cifs: smb2ops: Fix NULL check in smb2_query_symlink
The current code null checks variable err_buf, which is always null
when it is checked, hence utf16_path is free'd and the function
returns -ENOENT everytime it is called, making it impossible for the
execution path to reach the following code:
err_buf = err_iov.iov_base;
Fix this by null checking err_iov.iov_base instead of err_buf. Also,
notice that err_buf no longer needs to be initialized to NULL.
Addresses-Coverity-ID: 1467876 ("Logically dead code")
Fixes: 2d636199e400 ("cifs: Change SMB2_open to return an iov for the error parameter")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Steve French <[email protected]>
Reviewed-by: Pavel Shilovsky <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions
