commit | 5ee45fc998a3e45af45f8886fb13cc417c6f18d0 | [log] [tgz] |
---|---|---|
author | Fabio Estevam <fabio.estevam@nxp.com> | Fri Jan 05 18:02:55 2018 -0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Aug 15 18:14:43 2018 +0200 |
tree | dba7ce352db956607fd1d88f1d17bdec49db534f | |
parent | e2ba7bf19727b67f0f3850c84829a19898401928 [diff] |
mtd: nand: qcom: Add a NULL check for devm_kasprintf() commit 069f05346d01e7298939f16533953cdf52370be3 upstream. devm_kasprintf() may fail, so we should better add a NULL check and propagate an error on failure. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>