aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorAlistair Delva <[email protected]>2022-01-19 23:21:39 +0000
committerBjorn Andersson <[email protected]>2022-02-18 18:15:05 -0600
commitf89672cc3681952f2d06314981a6b45f8b0045d1 (patch)
treeb40e5004f11a4e86e7deac47d32a2d06ff3e431b /tools/testing/selftests/bpf/progs/test_prog_array_init.c
parentae6062c4abdbf44c9cbae95805180e2fa1442b57 (diff)
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 <[email protected]> Cc: Rishabh Bhatnagar <[email protected]> Cc: [email protected] Cc: Ohad Ben-Cohen <[email protected]> Cc: Bjorn Andersson <[email protected]> Cc: Mathieu Poirier <[email protected]> Cc: Sibi Sankar <[email protected]> Cc: [email protected] Cc: [email protected] Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions