diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2018-09-11 10:50:14 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-09-13 15:19:56 +1000 |
commit | 9d9395c3d542b5b2949b6ba3d5c0a8f1618b77e0 (patch) | |
tree | 6ef7f5a84d83d31ef1b7eb99402f0adfad35cb9f /hdata/spira.c | |
parent | dd2dacf8ee0604107e93354cc2968e8f3bdf5cf0 (diff) | |
download | skiboot-9d9395c3d542b5b2949b6ba3d5c0a8f1618b77e0.zip skiboot-9d9395c3d542b5b2949b6ba3d5c0a8f1618b77e0.tar.gz skiboot-9d9395c3d542b5b2949b6ba3d5c0a8f1618b77e0.tar.bz2 |
hdata: Make sure FW feature name is not empty
CC: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/spira.c')
-rw-r--r-- | hdata/spira.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index c820c4d..3a26f17 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1213,6 +1213,11 @@ static void add_iplparams_features(const struct HDIF_common_hdr *iplp) name[sizeof(name)-1] = '\0'; flags = be64_to_cpu(feature->flags); + if (strlen(name) == 0) { + prlog(PR_DEBUG, "IPLPARAMS: FW feature name is NULL\n"); + continue; + } + prlog(PR_DEBUG, "IPLPARAMS: FW feature %s = %016"PRIx64"\n", name, flags); |