staging: vchiq: Fix bulk userdata handling
authorPhil Elwell <phil@raspberrypi.com>
Tue, 22 Dec 2020 16:13:17 +0000 (16:13 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:13:29 +0000 (19:13 +0000)
commit37f026bbeda0ee11ce81428217c0376c2c10c04b
tree6298c27ec8b6b4aec015e463af1fe50488d23150
parent49e64311936f0f73d26ea9c0962bf91d3b23f6dc
staging: vchiq: Fix bulk userdata handling

The addition of the local 'userdata' pointer to
vchiq_irq_queue_bulk_tx_rx omitted the case where neither BLOCKING nor
WAITING modes are used, in which case the value provided by the
caller is replaced with a NULL.

Fixes: 4184da4f316a ("staging: vchiq: fix __user annotations")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c