summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm93.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-06-11 12:19:48 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2021-06-29 16:50:00 +0200
commit49036ba889e346da6ebf2f741fe0b0ee49a11b08 (patch)
tree5bbb5650dfb9131d256a68febe451be415284d1d /drivers/hwmon/lm93.c
parent2f2b73a29d2aabf5ad0150856c3e5cb6e04dcfc1 (diff)
downloadlinux-stable-49036ba889e346da6ebf2f741fe0b0ee49a11b08.tar.gz
linux-stable-49036ba889e346da6ebf2f741fe0b0ee49a11b08.tar.bz2
linux-stable-49036ba889e346da6ebf2f741fe0b0ee49a11b08.zip
mmc: sdhci: Clear unused bounce buffer at DMA mmap error path
When DMA-mapping of the bounce buffer fails, the driver tries to fall back, but it leaves the allocated host->bounce_buffer although its size is zero. Later on, the driver checks the use of bounce buffer with host->bounce_buffer pointer, and it tries to use the buffer incorrectly, resulting in Oops. This patch clears the release the unused buffer and clears the bounce_buffer pointer for addressing the problem. Acked-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20210611101948.18972-1-tiwai@suse.de Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/hwmon/lm93.c')
0 files changed, 0 insertions, 0 deletions