summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/core
diff options
context:
space:
mode:
authorGeorge Hilliard2019-03-20 23:42:05 +0100
committerGreg Kroah-Hartman2019-03-22 15:20:27 +0100
commitd4223e06b6aed581625f574ad8faa71b6c0fc903 (patch)
tree9aca063aaf039002068227fad2d08ba1a024c363 /drivers/staging/rtl8723bs/core
parentstaging: mt7621-mmc: Fix warning when reloading module with debug msgs enabled (diff)
downloadkernel-qcow2-linux-d4223e06b6aed581625f574ad8faa71b6c0fc903.tar.gz
kernel-qcow2-linux-d4223e06b6aed581625f574ad8faa71b6c0fc903.tar.xz
kernel-qcow2-linux-d4223e06b6aed581625f574ad8faa71b6c0fc903.zip
staging: mt7621-mmc: Check for nonzero number of scatterlist entries
The buffer descriptor setup loop is correct only if it is setting up at least one bd struct. Besides, there is an error if dma_map_sg() returns 0, which is possible and must be handled. Additionally, remove the BUG_ON() checking sglen, which is unnecessary because we configure DMA with that constraint during init. Signed-off-by: George Hilliard <thirtythreeforty@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/core')
0 files changed, 0 insertions, 0 deletions