summaryrefslogtreecommitdiff
path: root/cmd/source.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2024-04-09 08:38:08 +0200
committerChristophe Leroy <christophe.leroy@csgroup.eu>2024-04-18 15:47:46 +0200
commitea208201a12913e7a5b7b4b38624942effa44c05 (patch)
tree3137f6adde92d54ade76dff1ad26cca8364d6187 /cmd/source.c
parent8f58ecf6c328b318187027e1a911a975747b173d (diff)
spi: mpc8xx: Fix transfert when input or output buffer is NULL
xfer ops can be passed a NULL input or output buffer. At the time being the driver ignores it and overwrites memory at 0. Define a dummy buffer and use it when either input or output buffer is NULL. Bail out when both are NULL as it shouldn't. Also increase MAX_BUFFER len to 32k as the current is pretty low. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Diffstat (limited to 'cmd/source.c')
0 files changed, 0 insertions, 0 deletions