summaryrefslogtreecommitdiff
path: root/board/a3m071
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2014-09-18 17:13:07 +0200
committerSimon Glass <sjg@chromium.org>2014-09-23 12:44:31 -0600
commitcae025aab3e8ea8ad455cce8b0e4647401cdd091 (patch)
tree4c6da6074b1a63ba1042e17147b494110664ccd8 /board/a3m071
parent59990bf0eaa12b123759cb0485f38e156103e93c (diff)
downloadu-boot-imx-cae025aab3e8ea8ad455cce8b0e4647401cdd091.zip
u-boot-imx-cae025aab3e8ea8ad455cce8b0e4647401cdd091.tar.gz
u-boot-imx-cae025aab3e8ea8ad455cce8b0e4647401cdd091.tar.bz2
dm: avoid dev->req_seq overflow
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 <r.baldyga@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/a3m071')
0 files changed, 0 insertions, 0 deletions