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: NKees Cook <keescook@chromium.org> Signed-off-by: NBrian Norris <computersforpeace@gmail.com> Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
Showing
想要评论请 注册 或 登录