Skip to content

UBI: Coverity-inspired fixes

Brian Norris kernel-janitors linux-mtd lkml 1 version Applied

Status from this message: Applied, thanks a lot Brian!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5UBI: account for bitflips in both the VID header and datadrivers/mtd/ubi/attach.c+1 -10 replies
2/5UBI: fix out of bounds writedrivers/mtd/ubi/eba.c+2 -10 replies
3/5UBI: initialize LEB number variabledrivers/mtd/ubi/wl.c+1 -10 replies
4/5UBI: fix check for "too many bytes"drivers/mtd/ubi/cdev.c+1 -11 reply
5/5UBI: align comment for readabilitydrivers/mtd/ubi/ubi.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] UBI: Coverity-inspired fixes

Except for the last one, these were inspired by Coverity Scan results.

These fixes have barely been tested, but they are pretty straightforward logically. As they've been sitting in my dust pile too long, I thought I'd at least get them out there.

Brian Norris (5):
UBI: account for bitflips in both the VID header and data
UBI: fix out of bounds write
UBI: initialize LEB number variable
UBI: fix check for "too many bytes"
UBI: align comment for readability

 drivers/mtd/ubi/attach.c | 2 +-
 drivers/mtd/ubi/cdev.c   | 2 +-
 drivers/mtd/ubi/eba.c    | 3 ++-
 drivers/mtd/ubi/ubi.h    | 2 +-
 drivers/mtd/ubi/wl.c     | 2 +-
 5 files changed, 6 insertions(+), 5 deletions(-)
Signature · 1 line
2.1.0