summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-10-18 01:08:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-25 10:52:02 +0300
commit1b301e8343d24a7345bb84831f92e13afe6afeef (patch)
tree0050b312cbae0182c9620a794703cea78fa8510c /scripts/basic
parentd4bcd7e75cce12cc596144688a8167cef19e886c (diff)
downloadlinux-1b301e8343d24a7345bb84831f92e13afe6afeef.tar.xz
staging: lustre: remove broken dead code in cfs_cpt_table_create_pattern
After a recent bugfix, we get a warning about the use of an uninitialized variable: drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c: In function 'cfs_cpt_table_create_pattern': drivers/staging/lustre/lnet/libcfs/linux/linux-cpu.c:833:7: error: 'str' may be used uninitialized in this function [-Werror=maybe-uninitialized] This part of the function used to not do anything as we would reassign the 'str' pointer to something else right away, but now we pass an uninitialized pointer into 'strchr', which can cause a kernel page fault or worse. Fixes: 239fd5d41f9b ("staging: lustre: libcfs: shortcut to create CPT from NUMA topology") Cc: Liang Zhen <liang.zhen@intel.com> Cc: James Simmons <jsimmons@infradead.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions