From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
To: Ming Lei <ming.lei@canonical.com>
Cc: Mimi Zohar <zohar@linux.vnet.ibm.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Kees Cook <keescook@chromium.org>,
linux-kernel@vger.kernel.org,
Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Subject: [PATCH] firmware: set firmware_buf size in kernel_read_file_from_path()
Date: Sat, 20 Feb 2016 18:14:10 +0900 [thread overview]
Message-ID: <1455959650-2571-1-git-send-email-sergey.senozhatsky@gmail.com> (raw)
Set firmware_buf->size in kernel_read_file_from_path(),
otherwise assign_firmware_buf() fails.
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
drivers/base/firmware_class.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index b8bc846..7cf41a5 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -335,6 +335,7 @@ static int fw_get_filesystem_firmware(struct device *device,
}
dev_dbg(device, "direct-loading %s\n",
buf->fw_id);
+ buf->size = size;
fw_finish_direct_load(device, buf);
break;
}
--
2.7.1
next reply other threads:[~2016-02-20 9:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-20 9:14 Sergey Senozhatsky [this message]
2016-02-20 9:21 ` Sergey Senozhatsky
2016-02-20 9:22 ` [PATCH] firmware: set firmware_buf size in fw_get_filesystem_firmware() Sergey Senozhatsky
[not found] ` <1456027178.2906.196.camel@linux.vnet.ibm.com>
2016-02-21 5:01 ` Sergey Senozhatsky
2016-02-21 13:46 ` Mimi Zohar
2016-02-21 9:46 ` Ming Lei
2016-02-23 7:20 ` Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455959650-2571-1-git-send-email-sergey.senozhatsky@gmail.com \
--to=sergey.senozhatsky@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@canonical.com \
--cc=zohar@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®