commit | 09ce2e218fb34ec0ad182e3d378614257fdb22e6 | [log] [tgz] |
---|---|---|
author | David Leach <david.leach@nxp.com> | Mon Nov 13 14:12:47 2017 -0600 |
committer | Andrew Boie <andrewboie@gmail.com> | Mon Nov 13 13:50:15 2017 -0800 |
tree | ba1c1350f4af07c96c4cd43ae782a835908f7f65 | |
parent | ed3ede06e1bc5886312b9f4856936ec354ca428a [diff] |
subsys/random: Add _ASSERT() test on returned device_get_binding If there is a build setup problem where a device driver has not been setup for the entropy driver then the call to device_get_binding() will return a NULL value and the code will continue to use this NULL value. The result is a hard fault later in code execution. Note that CONFIG_ASSERT is by default off so one has to turn this configuration on to catch this problem. Signed-off-by: David Leach <david.leach@nxp.com>