[PATCH] mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing

Robert Jarzmik robert.jarzmik at free.fr
Mon Jun 12 23:24:56 PDT 2017


Boris Brezillon <boris.brezillon at free-electrons.com> writes:

> According to the C99 standard (section 6.7.8.21):
>
> "
> If there are fewer initializers in a brace-enclosed list than there are
> elements or members of an aggregate, or fewer characters in a string
> literal used to initialize an array of known size than there are
> elements in the array, the remainder of the aggregate shall be
> initialized implicitly the same as objects that have static storage
> duration.
> "
>
> which should guarantee that uninitialized fields are actually set to 0,
> even when the struct is allocated on the stack.
Ah yes, indeed, my bad.

Therefore for docg3.c :
Acked-by: Robert Jarzmik <robert.jarzmik at free.fr>

Cheers.

-- 
Robert



More information about the linux-mtd mailing list