aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/flash
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2018-03-18 15:56:10 +0000
committerIan Lepore <ian@FreeBSD.org>2018-03-18 15:56:10 +0000
commitdac94adb6340367d6239af8e6fbda858d270b8c3 (patch)
treeb6931064eea73cb4061ff3eb8670335033634c33 /sys/dev/flash
parentbdfc6e62ff9bf69f9fa8c8eb13da293c3582055f (diff)
Notes
Diffstat (limited to 'sys/dev/flash')
-rw-r--r--sys/dev/flash/mx25l.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/flash/mx25l.c b/sys/dev/flash/mx25l.c
index 811e0ab3805c9..db1bc1d6323f4 100644
--- a/sys/dev/flash/mx25l.c
+++ b/sys/dev/flash/mx25l.c
@@ -90,6 +90,7 @@ struct mx25l_softc
struct bio_queue_head sc_bio_queue;
unsigned int sc_flags;
unsigned int sc_taskstate;
+ uint8_t sc_dummybuf[FLASH_PAGE_SIZE];
};
#define TSTATE_STOPPED 0
@@ -344,7 +345,7 @@ mx25l_write(device_t dev, off_t offset, caddr_t data, off_t count)
cmd.rx_cmd = rxBuf;
cmd.tx_data = data + bytes_writen;
cmd.tx_data_sz = bytes_to_write;
- cmd.rx_data = data + bytes_writen;
+ cmd.rx_data = sc->sc_dummybuf;
cmd.rx_data_sz = bytes_to_write;
/*