git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
net
/
irda
/
ircomm
/
ircomm_tty.c
diff --git
a/net/irda/ircomm/ircomm_tty.c
b/net/irda/ircomm/ircomm_tty.c
index
f348c0c
..
f0c93ca
100644
(file)
--- a/
net/irda/ircomm/ircomm_tty.c
+++ b/
net/irda/ircomm/ircomm_tty.c
@@
-561,7
+561,7
@@
static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
tty->ldisc.flush_buffer(tty);
tty->closing = 0;
tty->ldisc.flush_buffer(tty);
tty->closing = 0;
- self->tty =
0
;
+ self->tty =
NULL
;
if (self->blocked_open) {
if (self->close_delay) {
if (self->blocked_open) {
if (self->close_delay) {
@@
-1045,7
+1045,7
@@
static void ircomm_tty_hangup(struct tty_struct *tty)
/* I guess we need to lock here - Jean II */
spin_lock_irqsave(&self->spinlock, flags);
self->flags &= ~ASYNC_NORMAL_ACTIVE;
/* I guess we need to lock here - Jean II */
spin_lock_irqsave(&self->spinlock, flags);
self->flags &= ~ASYNC_NORMAL_ACTIVE;
- self->tty =
0
;
+ self->tty =
NULL
;
self->open_count = 0;
spin_unlock_irqrestore(&self->spinlock, flags);
self->open_count = 0;
spin_unlock_irqrestore(&self->spinlock, flags);