OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
l2t_seq_next should increase position index
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
kernel
/
relay.c
diff --git
a/kernel/relay.c
b/kernel/relay.c
index
0b4570c
..
f6d5f08
100644
(file)
--- a/
kernel/relay.c
+++ b/
kernel/relay.c
@@
-163,7
+163,7
@@
static struct rchan_buf *relay_create_buf(struct rchan *chan)
{
struct rchan_buf *buf;
- if (chan->n_subbufs >
UINT_MAX
/ sizeof(size_t *))
+ if (chan->n_subbufs >
KMALLOC_MAX_SIZE
/ sizeof(size_t *))
return NULL;
buf = kzalloc(sizeof(struct rchan_buf), GFP_KERNEL);