commit | c200367b6893e4cd85001bf10eac6fc55da89339 | [log] [tgz] |
---|---|---|
author | Leandro Pereira <leandro.pereira@intel.com> | Wed Apr 04 13:50:32 2018 -0700 |
committer | Anas Nashif <nashif@linux.intel.com> | Thu Apr 26 02:57:12 2018 +0530 |
tree | 26200af71f7a17abc6633d477b21792b25b83112 | |
parent | e7ded11a2eb36deba9bda359b510e52cdcd5fb4c [diff] |
drivers: Perform a runtime check if a driver is capable of an operation Driver APIs might not implement all operations, making it possible for a user thread to get the kernel to execute a function at 0x00000000. Perform runtime checks in all the driver handlers, checking if they're capable of performing the requested operation. Fixes #6907. Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>