aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>2013-06-27 04:32:56 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-07-01 04:10:48 -0400
commit6bbbca735936e15b9431882eceddcf6dff76e03c (patch)
tree480bb28754a7e47fe341530d98299e988b835224 /drivers/firmware
parent74251fe21bfa9310ddba9e0436d1fcf389e602ee (diff)
pstore: Pass header size in the pstore write callback
Header size is needed to distinguish between header and the dump data. Incorporate the addition of new argument (hsize) in the pstore write callback. Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/efi/efi-pstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/efi-pstore.c b/drivers/firmware/efi/efi-pstore.c
index 202d2c85ba2e..452800e005b6 100644
--- a/drivers/firmware/efi/efi-pstore.c
+++ b/drivers/firmware/efi/efi-pstore.c
@@ -104,7 +104,7 @@ static ssize_t efi_pstore_read(u64 *id, enum pstore_type_id *type,
104 104
105static int efi_pstore_write(enum pstore_type_id type, 105static int efi_pstore_write(enum pstore_type_id type,
106 enum kmsg_dump_reason reason, u64 *id, 106 enum kmsg_dump_reason reason, u64 *id,
107 unsigned int part, int count, size_t size, 107 unsigned int part, int count, size_t hsize, size_t size,
108 struct pstore_info *psi) 108 struct pstore_info *psi)
109{ 109{
110 char name[DUMP_NAME_LEN]; 110 char name[DUMP_NAME_LEN];