login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
29
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from input_register_device
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Jeff Garzik <jeff@...>
To: Dirk Hohndel <hohndel@...>
Cc: Jiri Kosina <jikos@...>, <linux-input@...>, <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from input_register_device
Date: Monday, October 29, 2007 - 5:35 am
Dirk Hohndel wrote:
quoted text
> [INPUT] hidinput_connect incorrectly ignored return value from input_register_device > > Signed-off-by: Dirk Hohndel <hohndel@linux.intel.com> > > --- > drivers/hid/hid-input.c | 12 ++++++++++-- > 1 files changed, 10 insertions(+), 2 deletions(-) > > diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c > index dd332f2..880161b 100644 > --- a/drivers/hid/hid-input.c > +++ b/drivers/hid/hid-input.c > @@ -1186,13 +1186,21 @@ int hidinput_connect(struct hid_device *hid) > * UGCI) cram a lot of unrelated inputs into the > * same interface. */ > hidinput->report = report; > - input_register_device(hidinput->input); > + if (input_register_device(hidinput->input)) { > + input_free_device(hidinput->input); > + kfree(hidinput); > + return -1; > + } > hidinput = NULL; > } > } > > if (hidinput) > - input_register_device(hidinput->input); > + if (input_register_device(hidinput->input)) { > + input_free_device(hidinput->input); > + kfree(hidinput); > + return -1;
ACK, thanks for revising -
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] INPUT: fix hidinput_connect ignoring retval from inp...
, Dirk Hohndel
, (Mon Oct 29, 2:51 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Jeff Garzik
, (Mon Oct 29, 3:53 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Dirk Hohndel
, (Mon Oct 29, 4:49 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Jiri Kosina
, (Mon Oct 29, 6:14 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Dmitry Torokhov
, (Mon Oct 29, 8:54 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Jeff Garzik
, (Mon Oct 29, 10:49 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Dirk Hohndel
, (Mon Oct 29, 11:20 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Jiri Kosina
, (Mon Oct 29, 1:28 pm)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Dirk Hohndel
, (Mon Oct 29, 6:50 pm)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Dmitry Torokhov
, (Mon Oct 29, 11:33 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Hohndel, Dirk
, (Mon Oct 29, 11:38 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Dmitry Torokhov
, (Mon Oct 29, 1:11 pm)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Jiri Kosina
, (Mon Oct 29, 8:57 am)
Re: [PATCH] INPUT: fix hidinput_connect ignoring retval from...
, Jeff Garzik
, (Mon Oct 29, 5:35 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.21-rc4
Jens Axboe
[PATCH 0/8] IO queuing and complete affinity
Nicholas A. Bellinger
Re: Integration of SCST in the mainstream Linux kernel
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
git
:
linux-netdev
:
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Ingo Molnar
Re: [crash] BUG: unable to handle kernel NULL pointer dereference at 0000000000000...
Gerrit Renker
[PATCH 19/37] dccp: Header option insertion routine for feature-negotiation
Gary Thomas
Marvell 88E609x switch?
linux-fsdevel
:
Jamie Lokier
Re: silent semantic changes with reiser4
Jan Kara
[PATCH 10/16] ext4: Remove syncing logic from ext4_file_write
Jack Stone
Re: Versioning file system
Jens Axboe
[PATCH 8/8] vm: Add an tuning knob for vm.max_writeback_pages
Colocation donated by:
Who's online
There are currently
0 users
and
1214 guests
online.
Syndicate