diff options
author | Borislav Petkov <bp@suse.de> | 2016-01-15 19:26:44 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-15 21:14:17 +0100 |
commit | 39c01bf933106296e43e46cdbd9edce13ae5a5b7 (patch) | |
tree | a11498f5db03a64dd57295dab6b75f848f8cfc48 /fs | |
parent | Make sure that highmem pages are not added to symlink page cache (diff) | |
download | linux-39c01bf933106296e43e46cdbd9edce13ae5a5b7.tar.xz linux-39c01bf933106296e43e46cdbd9edce13ae5a5b7.zip |
amdkfd: Copy from the proper user command pointer
8f1d57c17248 ("amdkfd: don't open-code memdup_user()") mistakenly uses
an uninitialized local pointer, gcc complains:
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c: In function ‘kfd_ioctl_dbg_address_watch’:
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c:562:12: warning: ‘args_buff’ may be used uninitialized in this function [-Wmaybe-uninitialized]
args_buff = memdup_user(args_buff,
^
Fix it.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions