OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6721ab7
)
serial_core: fix sizeof(pointer)
author
Fengguang Wu
<fengguang.wu@intel.com>
Thu, 6 Sep 2012 02:27:51 +0000
(10:27 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 16:19:50 +0000
(09:19 -0700)
sizeof when applied to a pointer typed expression gives the
size of the pointer.
Generated by: scripts/coccinelle/misc/noderef.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/serial_core.c
b/drivers/tty/serial/serial_core.c
index
137b25c
..
19993d8
100644
(file)
--- a/
drivers/tty/serial/serial_core.c
+++ b/
drivers/tty/serial/serial_core.c
@@
-640,7
+640,7
@@
static void uart_get_info(struct tty_port *port,
{
struct uart_port *uport = state->uart_port;
- memset(retinfo, 0, sizeof(retinfo));
+ memset(retinfo, 0, sizeof(
*
retinfo));
retinfo->type = uport->type;
retinfo->line = uport->line;