smb: minor fix to use sizeof to initialize flags_string buffer

Replaced hardcoded length with sizeof(flags_string).

Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by Bharath SM and committed by Steve French 4d360cfe 4eb11a34

+1 -1
+1 -1
fs/smb/client/cifs_debug.c
··· 1105 1105 if ((count < 1) || (count > 11)) 1106 1106 return -EINVAL; 1107 1107 1108 - memset(flags_string, 0, 12); 1108 + memset(flags_string, 0, sizeof(flags_string)); 1109 1109 1110 1110 if (copy_from_user(flags_string, buffer, count)) 1111 1111 return -EFAULT;