[PATCH linux dev-4.10] drivers: fsi: sbefifo: Fix buffer initialization
Eddie James
eajames at linux.vnet.ibm.com
Wed Jun 14 00:30:40 AEST 2017
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>
---
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