summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-12-10 01:50:27 +0300
committerShuah Khan <shuahkh@osg.samsung.com>2016-01-07 23:44:22 +0300
commiteb910947c82f93cee6ee00a59a4ed86f12cf6e7f (patch)
tree7e941e42f6241a8c62fd4f7393a9b6990407caaf /drivers/base
parentbe4a1326d12cce8df1f57017bf4112eaab437a38 (diff)
downloadlinux-eb910947c82f93cee6ee00a59a4ed86f12cf6e7f.tar.xz
test: firmware_class: add asynchronous request trigger
We might want to test for bugs like that found in commit f9692b2699bd ("firmware: fix possible use after free on name on asynchronous request"), where the asynchronous request API had race conditions. Let's add a simple file that will launch the async request, then wait until it's complete and report the status. It's not a true async test (we're using a mutex + wait_for_completion(), so we can't get more than one going at the same time), but it does help make sure the basic API is sane, and it can catch some class of bugs. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Cc: Luis R. Rodriguez <mcgrof@suse.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions