[PATCH linux dev-4.10] drivers: fsi: sbefifo: Fix buffer initialization

Joel Stanley joel at jms.id.au
Fri Jun 16 16:27:16 AEST 2017


On Wed, Jun 14, 2017 at 12:00 AM, Eddie James
<eajames at linux.vnet.ibm.com> wrote:
> From: "Edward A. James" <eajames at us.ibm.com>
>
> Flags field wasn't set, leading to inconsistent results.
>
> Signed-off-by: Edward A. James <eajames at us.ibm.com>

Applied to dev-4.10.

> ---
>  drivers/fsi/fsi-sbefifo.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c
> index fbc8dc5..52d7a1b 100644
> --- a/drivers/fsi/fsi-sbefifo.c
> +++ b/drivers/fsi/fsi-sbefifo.c
> @@ -156,6 +156,7 @@ static size_t sbefifo_dev_nwwriteable(u32 sts)
>
>  static void sbefifo_buf_init(struct sbefifo_buf *buf)
>  {
> +       WRITE_ONCE(buf->flags, 0);
>         WRITE_ONCE(buf->rpos, buf->buf);
>         WRITE_ONCE(buf->wpos, buf->buf);
>  }
> --
> 1.8.3.1
>


More information about the openbmc mailing list