login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
6
Re: [PATCH v4 11/15] PCI: rpaphp: kmalloc/kfree slot->name directly
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pekka Enberg
Subject:
Re: [PATCH v4 11/15] PCI: rpaphp: kmalloc/kfree slot->name directly
Date: Sunday, October 5, 2008 - 11:44 pm
On Sat, Oct 4, 2008 at 2:18 AM, Alex Chiang <achiang@hp.com> wrote:
quoted text
> @@ -63,10 +63,9 @@ struct slot *alloc_slot_struct(struct device_node *dn, > GFP_KERNEL); > if (!slot->hotplug_slot->info) > goto error_hpslot; > - slot->hotplug_slot->name = kmalloc(strlen(drc_name) + 1, GFP_KERNEL); > - if (!slot->hotplug_slot->name) > + slot->name = kmalloc(strlen(drc_name) + 1, GFP_KERNEL); > + if (!slot->name) > goto error_info; > - slot->name = slot->hotplug_slot->name; > strcpy(slot->name, drc_name);
Minor nit: you could use kstrdup() here. --
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 v4 00/15] PCI: let the core manage slot names
, Alex Chiang
, (Fri Oct 3, 4:17 pm)
[PATCH v4 01/15] PCI Hotplug core: add 'name' param pci_hp ...
, Alex Chiang
, (Fri Oct 3, 4:17 pm)
[PATCH v4 02/15] PCI Hotplug: serialize pci_hp_register/de ...
, Alex Chiang
, (Fri Oct 3, 4:17 pm)
[PATCH v4 03/15] PCI: prevent duplicate slot names
, Alex Chiang
, (Fri Oct 3, 4:17 pm)
[PATCH v4 04/15] PCI, PCI Hotplug: introduce slot_name helpers
, Alex Chiang
, (Fri Oct 3, 4:17 pm)
[PATCH v4 05/15] PCI: acpiphp: remove 'name' parameter
, Alex Chiang
, (Fri Oct 3, 4:17 pm)
[PATCH v4 06/15] PCI: cpci_hotplug: stop managing hotplug_ ...
, Alex Chiang
, (Fri Oct 3, 4:17 pm)
[PATCH v4 07/15] PCI: cpqphp: stop managing hotplug_slot->name
, Alex Chiang
, (Fri Oct 3, 4:18 pm)
[PATCH v4 08/15] PCI: fakephp: remove 'name' parameter
, Alex Chiang
, (Fri Oct 3, 4:18 pm)
[PATCH v4 09/15] PCI: ibmphp: stop managing hotplug_slot->name
, Alex Chiang
, (Fri Oct 3, 4:18 pm)
[PATCH v4 10/15] PCI: pciehp: remove 'name' parameter
, Alex Chiang
, (Fri Oct 3, 4:18 pm)
[PATCH v4 11/15] PCI: rpaphp: kmalloc/kfree slot->name dir ...
, Alex Chiang
, (Fri Oct 3, 4:18 pm)
[PATCH v4 12/15] PCI: SGI Hotplug: stop managing bss_hotpl ...
, Alex Chiang
, (Fri Oct 3, 4:18 pm)
[PATCH v4 13/15] PCI: shcphp: remove 'name' parameter
, Alex Chiang
, (Fri Oct 3, 4:18 pm)
[PATCH v4 14/15] PCI: Hotplug core: remove 'name'
, Alex Chiang
, (Fri Oct 3, 4:18 pm)
[PATCH v4 15/15] PCI Hotplug: fakephp: add duplicate slot ...
, Alex Chiang
, (Fri Oct 3, 4:18 pm)
Re: [PATCH v4 11/15] PCI: rpaphp: kmalloc/kfree slot->name ...
, Pekka Enberg
, (Sun Oct 5, 11:44 pm)
Re: [PATCH v4 01/15] PCI Hotplug core: add 'name' param pc ...
, Matthew Wilcox
, (Mon Oct 6, 2:04 am)
Re: [PATCH v4 02/15] PCI Hotplug: serialize pci_hp_registe ...
, Matthew Wilcox
, (Mon Oct 6, 7:45 am)
Re: [PATCH v4 02/15] PCI Hotplug: serialize pci_hp_registe ...
, Kenji Kaneshige
, (Tue Oct 7, 10:42 pm)
Re: [PATCH v4 03/15] PCI: prevent duplicate slot names
, Kenji Kaneshige
, (Tue Oct 7, 11:00 pm)
Re: [PATCH v4 00/15] PCI: let the core manage slot names
, Kenji Kaneshige
, (Tue Oct 7, 11:31 pm)
[01/03] Sample patch for [PATCH v4 02/15]
, Kenji Kaneshige
, (Tue Oct 7, 11:33 pm)
[02/03] Sample patch for [PATCH v4 03/15]
, Kenji Kaneshige
, (Tue Oct 7, 11:34 pm)
[03/03] Sample patch for [PATCH v4 14/15]
, Kenji Kaneshige
, (Tue Oct 7, 11:36 pm)
Re: [PATCH v4 11/15] PCI: rpaphp: kmalloc/kfree slot->name ...
, Alex Chiang
, (Wed Oct 8, 9:05 pm)
Re: [PATCH v4 02/15] PCI Hotplug: serialize pci_hp_registe ...
, Alex Chiang
, (Wed Oct 8, 9:09 pm)
Re: [PATCH v4 03/15] PCI: prevent duplicate slot names
, Alex Chiang
, (Wed Oct 8, 9:12 pm)
Re: [PATCH v4 00/15] PCI: let the core manage slot names
, Alex Chiang
, (Wed Oct 8, 9:19 pm)
Re: [PATCH v4 00/15] PCI: let the core manage slot names
, Kenji Kaneshige
, (Wed Oct 8, 10:01 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
monstr
[PATCH 46/56] microblaze_v2: headers files entry.h current.h mman.h registers.h se...
Jan Engelhardt
Re: Linux Security *Module* Framework (Was: LSM conversion to static interface)
Dave Jones
Re: Why do so many machines need "noapic"?
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Lars-Peter Clausen
[PATCH v4] MMC: Add JZ4740 mmc driver
git
:
Andy Parkins
git-fetch fails with error code 128
Eli Zaretskii
Re: Switching from CVS to GIT
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Dan Chokola
Re: how do you "force a pull"?
Johan Herland
Re: Comment on weak refs
git-commits-head
:
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
linux-netdev
:
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Ilpo Järvinen
net-next/unix: BUG: using smp_processor_id() in preemptible
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Evgeniy Polyakov
Re: virt-manager broken by bind(0) in net-next.
Eric Dumazet
Re: [PATCH] conntrack: use SLAB_DESTROY_BY_RCU for nf_conn structs
openbsd-misc
:
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Laurens Vets
Re: OT: opinions on IDS / IPS solutions
Colocation donated by:
Syndicate