commit | 2e9edbff5e1f2207f8953d4866b393c7fd2995f8 | [log] [tgz] |
---|---|---|
author | Robert Baldyga <r.baldyga@samsung.com> | Thu Sep 18 17:13:07 2014 +0200 |
committer | Simon Glass <sjg@chromium.org> | Tue Sep 23 12:44:31 2014 -0600 |
tree | 4c6da6074b1a63ba1042e17147b494110664ccd8 | |
parent | 28141d5afb7d652aa128ba26300f2257bd03cde0 [diff] |
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>