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
USB: gadgetfs: fix unbounded memory allocation bug
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
tty
/
tty_audit.c
diff --git
a/drivers/tty/tty_audit.c
b/drivers/tty/tty_audit.c
index 90ca082935f635236a5c2ca5f4da48b99297b48f..3d245cd3d8e62082301b7061144ec2329cf16609 100644
(file)
--- a/
drivers/tty/tty_audit.c
+++ b/
drivers/tty/tty_audit.c
@@
-265,7
+265,7
@@
static struct tty_audit_buf *tty_audit_buf_get(struct tty_struct *tty,
*
* Audit @data of @size from @tty, if necessary.
*/
-void tty_audit_add_data(struct tty_struct *tty,
unsigned char
*data,
+void tty_audit_add_data(struct tty_struct *tty,
const void
*data,
size_t size, unsigned icanon)
{
struct tty_audit_buf *buf;