u-boot-brain/drivers/core
Robert Baldyga cae025aab3 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>
2014-09-23 12:44:31 -06:00
..
device.c dm: avoid dev->req_seq overflow 2014-09-23 12:44:31 -06:00
lists.c dm: Adjust lists_bind_fdt() to return the bound device 2014-09-10 12:59:59 -06:00
Makefile dm: Add base driver model support 2014-03-04 12:15:29 -05:00
root.c dm: Adjust lists_bind_fdt() to return the bound device 2014-09-10 12:59:59 -06:00
uclass.c dm: Avoid accessing uclasses before they are ready 2014-07-23 14:07:26 +01:00
util.c dm: Add base driver model support 2014-03-04 12:15:29 -05:00