Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since dev->req_seq value is initialized from "reg" property of fdt node, there is posibility, that address value contained in fdt is greater than INT_MAX, and then value in dev->req_seq is negative which led to probe() fail. This patch fix this problem by ensuring that req_seq is positive, unless it's one of errno codes. Signed-off-by: Robert Baldyga <[email protected]> Acked-by: Simon Glass <[email protected]>
- Loading branch information