Merge "clk: qcom: osm: Update maximum number of bytes to read from buffer"

This commit is contained in:
Linux Build Service Account 2018-03-16 01:55:35 -07:00 committed by Gerrit - the friendly Code Review server
commit 2a7776a7f1

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -2691,7 +2691,7 @@ static ssize_t debugfs_trace_method_get(struct file *file, char __user *buf,
else if (c->trace_method == XOR_PACKET)
len = snprintf(debug_buf, sizeof(debug_buf), "xor\n");
rc = simple_read_from_buffer((void __user *) buf, len, ppos,
rc = simple_read_from_buffer((void __user *) buf, count, ppos,
(void *) debug_buf, len);
mutex_unlock(&debug_buf_mutex);