diff options
| author | Dan Carpenter <[email protected]> | 2021-09-30 12:24:56 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2021-10-01 01:00:05 +0000 |
| commit | 87ffb310d5e8a441721a9d04dfa7c90cd9da3916 (patch) | |
| tree | 3d924c129340db845b9c8d7e87e70d876db1d032 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
| parent | ksmbd: fix transform header validation (diff) | |
| download | kernel-87ffb310d5e8a441721a9d04dfa7c90cd9da3916.tar.gz kernel-87ffb310d5e8a441721a9d04dfa7c90cd9da3916.zip | |
ksmbd: missing check for NULL in convert_to_nt_pathname()
The kmalloc() does not have a NULL check. This code can be re-written
slightly cleaner to just use the kstrdup().
Fixes: 265fd1991c1d ("ksmbd: use LOOKUP_BENEATH to prevent the out of share access")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Acked-by: Hyunchul Lee <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions
