projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'kvm-arm-fixes-4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git]
/
lib
/
seq_buf.c
diff --git
a/lib/seq_buf.c
b/lib/seq_buf.c
index 0c92583b7b7e290ef334c3a5ca519bc85952ae22..5c94e1012a91f9ea65b20ca130f3f4aa4fb337f5 100644
(file)
--- a/
lib/seq_buf.c
+++ b/
lib/seq_buf.c
@@
-118,7
+118,7
@@
int seq_buf_bprintf(struct seq_buf *s, const char *fmt, const u32 *binary)
if (s->len < s->size) {
ret = bstr_printf(s->buffer + s->len, len, fmt, binary);
- if (s
eq_buf_can_fit(s, ret)
) {
+ if (s
->len + ret < s->size
) {
s->len += ret;
return 0;
}