[linux-cifs-client] Re: [PATCH] cifs: show per mount security
mode in /proc/mounts (try #2)
Steve French
smfrench at gmail.com
Wed Mar 11 15:24:51 GMT 2009
On Wed, Mar 11, 2009 at 7:18 AM, Suresh Jayaraman <sjayaraman at suse.de> wrote:
> + for (i = 0; i < ARRAY_SIZE(sec_flags); i++) {
> + if (sec_flags[i].sec == flag)
> + break;
> + }
> +
> + return sec_flags[i].flavor;
This seems better, but won't it oops if there is no match on sec_flags
(since i is one greater than array size).
--
Thanks,
Steve
More information about the linux-cifs-client
mailing list