Re: [PATCH 1/3] drivers/base/core: improve device_add() error handling, fix bugs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cornelia Huck wrote:
On Wed, 18 Jul 2007 01:36:00 -0700,
Greg KH <[email protected]> wrote:

Or it should be, hm, Cornelia, can you resend it, I seem to have dropped
it :(

Andrew just did :)

(For reference, here's the patch:)

From: [email protected]
To: [email protected]
Cc: [email protected], [email protected]
Subject: [patch 1/1] Driver core: check return code of sysfs_create_link()
Date: Wed, 18 Jul 2007 01:43:47 -0700

From: Cornelia Huck <[email protected]>

Check for return value of sysfs_create_link() in device_add() and
device_rename().  Add helper functions device_add_class_symlinks() and
device_remove_class_symlinks() to make the code easier to read.

[[email protected]: fix unused var warnings]
Signed-off-by: Cornelia Huck <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---

 drivers/base/core.c |  145 ++++++++++++++++++++++++++++++------------
 1 file changed, 105 insertions(+), 40 deletions(-)

ACK


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux