Skip to content
Commit be4a1326 authored by Brian Norris's avatar Brian Norris Committed by Shuah Khan
Browse files

test: firmware_class: use kstrndup() where appropriate



We're essentially just doing an open-coded kstrndup(). The only
differences are with what happens after the first '\0' character, but
request_firmware() doesn't care about that.

Suggested-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 47e0bbb7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment