Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ndctl/namespace.c: fix a potential integer overflow
Static analysis warns that we may cause an integer overflow when left-shifting bb->len in nstype_clear_badblocks(). While it is unlikely to trigger this in real-world usage, since bb->len is limited by the kernel, the fix is is a trivial cast, and it quells the warning, and increases our robustness. Reviewed-by: Dan Williams <[email protected]> Signed-off-by: Vishal Verma <[email protected]>
- Loading branch information