aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorZhihao Cheng <[email protected]>2023-04-23 19:10:41 +0800
committerRichard Weinberger <[email protected]>2023-09-07 21:59:04 +0200
commit017c73a34a661a861712f7cc1393a123e5b2208c (patch)
tree15aac188fc114504c4b2173d5b04f4d0bcedf955 /tools/perf/util/trace-event-scripting.c
parent4a0fc73da97efd23a383ca839e6fe86410268f6b (diff)
ubi: Refuse attaching if mtd's erasesize is 0
There exists mtd devices with zero erasesize, which will trigger a divide-by-zero exception while attaching ubi device. Fix it by refusing attaching if mtd's erasesize is 0. Fixes: 801c135ce73d ("UBI: Unsorted Block Images") Reported-by: Yu Hao <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/T/ Signed-off-by: Zhihao Cheng <[email protected]> Reviewed-by: Miquel Raynal <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions