summaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2015-05-12 23:37:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 21:16:47 +0200
commit0810f18fce92afc827d5c7c1d4f146b72b8052d6 (patch)
tree22238cdc857e4a721feb44094c4db3fe8485bae3 /drivers/hv
parentcheckkconfigsymbols.py: set python2 as default interpreter (diff)
downloadlinux-0810f18fce92afc827d5c7c1d4f146b72b8052d6.tar.xz
linux-0810f18fce92afc827d5c7c1d4f146b72b8052d6.zip
ti-st: handle null allocation return correctly.
static analysis with smatch picked up the following error: get_platform_data() error: potential null dereference 'dt_pdata'. (kzalloc returns null) Instead, the code should return NULL to avoid the following null pointer deference. Also, remove the error message as it is redundant, the caller emits an error message to alert of a failure anyhow. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
0 files changed, 0 insertions, 0 deletions