]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
firmware: vpd: use kasprintf() when forming name of 'raw' attribute
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 24 May 2017 00:07:45 +0000 (17:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:41:20 +0000 (15:41 +0200)
commit9920a33e3573a207cd49895080e2806134e5e56f
tree69192fdeeeaf1fe7a5095749eae6448403a8ceaf
parent3eec6a1c0cf31b982cad560c16e19fdb1851ae91
firmware: vpd: use kasprintf() when forming name of 'raw' attribute

When creating name for the "raw" attribute, let's switch to using
kaspeintf() instead of doing it by hand. Also make sure we handle
errors.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/google/vpd.c