File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts)
164
164
substring_t args [MAX_OPT_ARGS ];
165
165
char * p ;
166
166
int option = 0 ;
167
- char * s , * e ;
167
+ char * s ;
168
168
int ret = 0 ;
169
169
170
170
/* setup defaults */
@@ -319,12 +319,13 @@ static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts)
319
319
v9ses -> flags |= V9FS_ACCESS_CLIENT ;
320
320
} else {
321
321
uid_t uid ;
322
+
322
323
v9ses -> flags |= V9FS_ACCESS_SINGLE ;
323
- uid = simple_strtoul (s , & e , 10 );
324
- if (* e != '\0' ) {
325
- ret = - EINVAL ;
326
- pr_info ("Unknown access argument %s\n" ,
327
- s );
324
+ r = kstrtouint (s , 10 , & uid );
325
+ if (r ) {
326
+ ret = r ;
327
+ pr_info ("Unknown access argument %s: %d \n" ,
328
+ s , r );
328
329
kfree (s );
329
330
continue ;
330
331
}
You can’t perform that action at this time.
0 commit comments