summaryrefslogtreecommitdiffstats
path: root/lib/win_minmax.c
diff options
context:
space:
mode:
authorAlistair Delva <adelva@google.com>2022-01-20 00:21:39 +0100
committerBjorn Andersson <bjorn.andersson@linaro.org>2022-02-19 01:15:05 +0100
commitf89672cc3681952f2d06314981a6b45f8b0045d1 (patch)
treeb40e5004f11a4e86e7deac47d32a2d06ff3e431b /lib/win_minmax.c
parentremoteproc: mtk_scp: Use dev_err_probe() where possible (diff)
downloadlinux-f89672cc3681952f2d06314981a6b45f8b0045d1.tar.xz
linux-f89672cc3681952f2d06314981a6b45f8b0045d1.zip
remoteproc: Fix count check in rproc_coredump_write()
Check count for 0, to avoid a potential underflow. Make the check the same as the one in rproc_recovery_write(). Fixes: 3afdc59e4390 ("remoteproc: Add coredump debugfs entry") Signed-off-by: Alistair Delva <adelva@google.com> Cc: Rishabh Bhatnagar <rishabhb@codeaurora.org> Cc: stable@vger.kernel.org Cc: Ohad Ben-Cohen <ohad@wizery.com> Cc: Bjorn Andersson <bjorn.andersson@linaro.org> Cc: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: Sibi Sankar <sibis@codeaurora.org> Cc: linux-remoteproc@vger.kernel.org Cc: kernel-team@android.com Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220119232139.1125908-1-adelva@google.com
Diffstat (limited to 'lib/win_minmax.c')
0 files changed, 0 insertions, 0 deletions