Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-12726 mdt: Fix usage of sscanf
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_lproc.c
diff --git
a/lustre/mdt/mdt_lproc.c
b/lustre/mdt/mdt_lproc.c
index
a0cf377
..
1ad735e
100644
(file)
--- a/
lustre/mdt/mdt_lproc.c
+++ b/
lustre/mdt/mdt_lproc.c
@@
-303,7
+303,7
@@
static ssize_t identity_upcall_store(struct kobject *kobj,
/* Remove any extraneous bits from the upcall (e.g. linefeeds) */
down_write(&hash->uc_upcall_rwsem);
/* Remove any extraneous bits from the upcall (e.g. linefeeds) */
down_write(&hash->uc_upcall_rwsem);
-
count =
sscanf(buffer, "%s", hash->uc_upcall);
+ sscanf(buffer, "%s", hash->uc_upcall);
up_write(&hash->uc_upcall_rwsem);
if (strcmp(hash->uc_name, mdt_obd_name(mdt)) != 0)
up_write(&hash->uc_upcall_rwsem);
if (strcmp(hash->uc_name, mdt_obd_name(mdt)) != 0)