commit | 1efaae59493e191e95bbc68a47e1487b4239f89d | [log] [tgz] |
---|---|---|
author | Andrew Boie <andrew.p.boie@intel.com> | Fri Mar 29 17:24:28 2019 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Apr 02 14:17:37 2019 -0400 |
tree | 66ffc9f3e24aa6fc6dd53c5850f3fe5f54937eeb | |
parent | 26a335c2e883e651088b073dcdc4b0dbe4ed3afb [diff] |
drivers: adc: make a copy of sequence struct We should not be storing the sequence pointer, as adc_read_async() returns immediately. The memory could be heap allocated, or on a call stack. Make a copy of it instead. Fixes: #15039 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>