aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorVijaya Krishna Nivarthi <[email protected]>2023-07-25 17:18:07 +0530
committerMark Brown <[email protected]>2023-07-25 19:11:54 +0100
commitf7ba36d399c4558f36886adff9400be591b245f6 (patch)
treeacd1744b1ad7f1bd09cc5790dcd154806806a305 /lib/test_fortify/write_overflow-strncpy-src.c
parent17aaf9ea07b656016316dc37716e987742b3e296 (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 <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Vijaya Krishna Nivarthi <[email protected]> Fixes: b5762d95607e ("spi: spi-qcom-qspi: Add DMA mode support") Reviewed-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions