summaryrefslogtreecommitdiffstats
path: root/fs/lockd/svclock.c
diff options
context:
space:
mode:
authorSudeep Holla2017-09-28 12:18:53 +0200
committerJassi Brar2017-11-14 15:51:32 +0100
commite339c80af95e14de3712d69ddea09a3868fa14cd (patch)
treea281c7bb1f342188981b3e5e590cb0f5880cf47f /fs/lockd/svclock.c
parentmailbox: reset txdone_method TXDONE_BY_POLL if client knows_txdone (diff)
downloadkernel-qcow2-linux-e339c80af95e14de3712d69ddea09a3868fa14cd.tar.gz
kernel-qcow2-linux-e339c80af95e14de3712d69ddea09a3868fa14cd.tar.xz
kernel-qcow2-linux-e339c80af95e14de3712d69ddea09a3868fa14cd.zip
mailbox: mailbox-test: don't rely on rx_buffer content to signal data ready
Currently we rely on the first byte of the Rx buffer to check if there's any data available to be read. If the first byte of the received buffer is zero (i.e. null character), then we fail to signal that data is available even when it's available. Instead introduce a boolean variable to track the data availability and update it in the channel receive callback as ready and clear it when the data is read. Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'fs/lockd/svclock.c')
0 files changed, 0 insertions, 0 deletions