Whamcloud - gitweb
LU-4629 libcfs: fix issues found by Klocwork Insight tool 00/9400/7
authorDmitry Eremin <dmitry.eremin@intel.com>
Wed, 26 Feb 2014 08:20:03 +0000 (12:20 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 25 Mar 2014 18:49:25 +0000 (18:49 +0000)
commit30eb728e146dcc3c14ac10aaae97b9be73362e5e
treee749f2da4e25116dee42878feec148e6966c71ff
parent7ccd55044110312c15d7e87a9a9cc3c72597b917
LU-4629 libcfs: fix issues found by Klocwork Insight tool

sscanf format specification '%u' expects type 'unsigned int *'
for 'u', but parameter 3 has a different type 'int*'.

Pointer 'cfs_crypto_hash_type(d->hd_hash->ha_id)' returned from
call to function 'cfs_crypto_hash_type' at line 261 may be NULL
and will be dereferenced at line 261.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I9945a7e5d44329aa6417946106212cb269395290
Reviewed-on: http://review.whamcloud.com/9400
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/linux/linux-cpu.c
libcfs/libcfs/nidstrings.c
libcfs/libcfs/user-crypto.c