login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
February
»
7
Re: [PATCH] tty: fix bug - kernel can't be pinged through when bootargs console=null
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH] tty: fix bug - kernel can't be pinged through when bootargs console=null
Date: Friday, February 6, 2009 - 5:05 pm
On Fri, 6 Feb 2009 16:27:57 +0800 Bryan Wu <cooloney@kernel.org> wrote:
quoted text
> From: Sonic Zhang <sonic.zhang@analog.com> > > when pass bootargs console=null into kernel from u-boot, the booted up > kernel can't be pinged through. This happens after the kernel is upgraded > to 2.6.28. > > Should check if tty_driver is NULL before call kref_get() in tty_driver_kref_get(). > > Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> > Signed-off-by: Bryan Wu <cooloney@kernel.org> > --- > include/linux/tty_driver.h | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h > index 08e0883..2a602a8 100644 > --- a/include/linux/tty_driver.h > +++ b/include/linux/tty_driver.h > @@ -312,7 +312,8 @@ extern struct tty_driver *tty_find_polling_driver(char *name, int *line); > extern void tty_driver_kref_put(struct tty_driver *driver); > extern inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d) > { > - kref_get(&d->kref); > + if (d) > + kref_get(&d->kref); > return d; > } >
Did any earlier kernel versions handle this situation OK? If so, we might need to be back-compatible with buggy userspace :( --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] tty: fix bug - kernel can't be pinged through when ...
, Bryan Wu
, (Fri Feb 6, 1:27 am)
Re: [PATCH] tty: fix bug - kernel can't be pinged through ...
, Alan Cox
, (Fri Feb 6, 3:06 am)
Re: [PATCH] tty: fix bug - kernel can't be pinged through ...
, Andrew Morton
, (Fri Feb 6, 5:05 pm)
Re: [PATCH] tty: fix bug - kernel can't be pinged through ...
, Alan Cox
, (Fri Feb 6, 5:09 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate