Loading fs/cifsd/ksmbd_server.h +11 −7 Original line number Diff line number Diff line Loading @@ -90,13 +90,17 @@ struct ksmbd_share_config_response { }; #define KSMBD_SHARE_CONFIG_VETO_LIST(s) ((s)->____payload) #define KSMBD_SHARE_CONFIG_PATH(s) \ ({ \ char *p = (s)->____payload; \ if ((s)->veto_list_sz) \ p += (s)->veto_list_sz + 1; \ p; \ }) static inline char * ksmbd_share_config_path(struct ksmbd_share_config_response *sc) { char *p = sc->____payload; if (sc->veto_list_sz) p += sc->veto_list_sz + 1; return p; } struct ksmbd_tree_connect_request { __u32 handle; Loading fs/cifsd/mgmt/share_config.c +1 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ static struct ksmbd_share_config *share_config_request(char *name) share->name = kstrdup(name, GFP_KERNEL); if (!test_share_config_flag(share, KSMBD_SHARE_FLAG_PIPE)) { share->path = kstrdup(KSMBD_SHARE_CONFIG_PATH(resp), share->path = kstrdup(ksmbd_share_config_path(resp), GFP_KERNEL); if (share->path) share->path_sz = strlen(share->path); Loading Loading
fs/cifsd/ksmbd_server.h +11 −7 Original line number Diff line number Diff line Loading @@ -90,13 +90,17 @@ struct ksmbd_share_config_response { }; #define KSMBD_SHARE_CONFIG_VETO_LIST(s) ((s)->____payload) #define KSMBD_SHARE_CONFIG_PATH(s) \ ({ \ char *p = (s)->____payload; \ if ((s)->veto_list_sz) \ p += (s)->veto_list_sz + 1; \ p; \ }) static inline char * ksmbd_share_config_path(struct ksmbd_share_config_response *sc) { char *p = sc->____payload; if (sc->veto_list_sz) p += sc->veto_list_sz + 1; return p; } struct ksmbd_tree_connect_request { __u32 handle; Loading
fs/cifsd/mgmt/share_config.c +1 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ static struct ksmbd_share_config *share_config_request(char *name) share->name = kstrdup(name, GFP_KERNEL); if (!test_share_config_flag(share, KSMBD_SHARE_FLAG_PIPE)) { share->path = kstrdup(KSMBD_SHARE_CONFIG_PATH(resp), share->path = kstrdup(ksmbd_share_config_path(resp), GFP_KERNEL); if (share->path) share->path_sz = strlen(share->path); Loading