summaryrefslogtreecommitdiff
path: root/fw/debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/debugfs.c')
-rw-r--r--fw/debugfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fw/debugfs.c b/fw/debugfs.c
index 3b0e8c43ba4a..ddee7c2deb36 100644
--- a/fw/debugfs.c
+++ b/fw/debugfs.c
@@ -7,6 +7,7 @@
#include "api/commands.h"
#include "debugfs.h"
#include "dbg.h"
+#include <linux/hex.h>
#include <linux/seq_file.h>
#define FWRT_DEBUGFS_OPEN_WRAPPER(name, buflen, argtype) \
@@ -359,7 +360,7 @@ static void *iwl_dbgfs_fw_info_seq_start(struct seq_file *seq, loff_t *pos)
if (*pos >= fw->ucode_capa.n_cmd_versions)
return NULL;
- state = kzalloc(sizeof(*state), GFP_KERNEL);
+ state = kzalloc_obj(*state);
if (!state)
return NULL;
state->pos = *pos;