]> git.baikalelectronics.ru Git - 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)
commitfba6b06cc6088f245957f6bc4c6be359412aa7ab
tree69192fdeeeaf1fe7a5095749eae6448403a8ceaf
parent1544448872e836cbb11bd68aea470e62a8d1b0c4
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