diff options
author | Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com> | 2023-07-25 17:18:07 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-25 19:11:54 +0100 |
commit | f7ba36d399c4558f36886adff9400be591b245f6 (patch) | |
tree | acd1744b1ad7f1bd09cc5790dcd154806806a305 /drivers/fpga/microchip-spi.c | |
parent | 17aaf9ea07b656016316dc37716e987742b3e296 (diff) |
spi: spi-qcom-qspi: Use GFP_ATOMIC flag while allocating for descriptor
While allocating for DMA descriptor, GFP_KERNEL flag is being used and
this allocation happens within critical section with spinlock acquired.
This generates a static checker warning.
Use GFP_ATOMIC to prevent sleeping; and since this increases chances of
allocation failure, add handling accordingly.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/abc223e8-44af-40bb-a0bd-9865b393f435@moroto.mountain/
Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Fixes: b5762d95607e ("spi: spi-qcom-qspi: Add DMA mode support")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/1690285689-30233-3-git-send-email-quic_vnivarth@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions