linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PATCH] Misc Driver fixes for 2.6.19-rc6
@ 2006-11-17  0:07 Greg KH
  2006-11-17  0:41 ` [PATCH 1/3] W1: ioremap balanced with iounmap Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2006-11-17  0:07 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel

Here are some driver related fixes for 2.6.19-rc6.

Three patches here:
	- aoe bugfix that is on Adrian's list.
	- w1 bugfix to prevent a memory leak
	- debugfs fix to properly detect errors

All of these patches have been in the -mm tree for a quite a while.

Please pull from:
	git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6.git/
or if master.kernel.org hasn't synced up yet:
	master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6.git/

Patches will be sent as a follow-on to this message to lkml for people
to see.

thanks,

greg k-h

 drivers/block/aoe/aoeblk.c     |    1 +
 drivers/w1/masters/matrox_w1.c |    2 ++
 fs/debugfs/inode.c             |    4 ++--
 3 files changed, 5 insertions(+), 2 deletions(-)

---------------

Akinobu Mita (1):
      debugfs: check return value correctly

Amol Lad (1):
      W1: ioremap balanced with iounmap

Dennis Stosberg (1):
      aoe: Add forgotten NULL at end of attribute list in aoeblk.c


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/3] W1: ioremap balanced with iounmap
  2006-11-17  0:07 [GIT PATCH] Misc Driver fixes for 2.6.19-rc6 Greg KH
@ 2006-11-17  0:41 ` Greg KH
  2006-11-17  0:41   ` [PATCH 2/3] debugfs: check return value correctly Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2006-11-17  0:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Amol Lad, Evgeniy Polyakov, Greg Kroah-Hartman

From: Amol Lad <amol@verismonetworks.com>

ioremap must be balanced with iounmap in error path.

Please consider for 2.6.19.

Signed-off-by: Amol Lad <amol@verismonetworks.com>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/w1/masters/matrox_w1.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/w1/masters/matrox_w1.c b/drivers/w1/masters/matrox_w1.c
index 2788b8c..6f9d880 100644
--- a/drivers/w1/masters/matrox_w1.c
+++ b/drivers/w1/masters/matrox_w1.c
@@ -215,6 +215,8 @@ static int __devinit matrox_w1_probe(str
 	return 0;
 
 err_out_free_device:
+	if (dev->virt_addr)
+		iounmap(dev->virt_addr);
 	kfree(dev);
 
 	return err;
-- 
1.4.3.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] debugfs: check return value correctly
  2006-11-17  0:41 ` [PATCH 1/3] W1: ioremap balanced with iounmap Greg KH
@ 2006-11-17  0:41   ` Greg KH
  2006-11-17  0:41     ` [PATCH 3/3] aoe: Add forgotten NULL at end of attribute list in aoeblk.c Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2006-11-17  0:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Akinobu Mita, Greg Kroah-Hartman

From: Akinobu Mita <akinobu.mita@gmail.com>

The return value is stored in "*dentry", not in "dentry".

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 fs/debugfs/inode.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index e77676d..a736d44 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -147,13 +147,13 @@ static int debugfs_create_by_name(const
 	*dentry = NULL;
 	mutex_lock(&parent->d_inode->i_mutex);
 	*dentry = lookup_one_len(name, parent, strlen(name));
-	if (!IS_ERR(dentry)) {
+	if (!IS_ERR(*dentry)) {
 		if ((mode & S_IFMT) == S_IFDIR)
 			error = debugfs_mkdir(parent->d_inode, *dentry, mode);
 		else 
 			error = debugfs_create(parent->d_inode, *dentry, mode);
 	} else
-		error = PTR_ERR(dentry);
+		error = PTR_ERR(*dentry);
 	mutex_unlock(&parent->d_inode->i_mutex);
 
 	return error;
-- 
1.4.3.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] aoe: Add forgotten NULL at end of attribute list in aoeblk.c
  2006-11-17  0:41   ` [PATCH 2/3] debugfs: check return value correctly Greg KH
@ 2006-11-17  0:41     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2006-11-17  0:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Dennis Stosberg, Greg Kroah-Hartman

From: Dennis Stosberg <dennis@stosberg.net>

This caused the system to stall when the aoe module was loaded.  The
error was introduced in commit 4ca5224f3ea4779054d96e885ca9b3980801ce13

Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/block/aoe/aoeblk.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c
index d433f27..aa25f8b 100644
--- a/drivers/block/aoe/aoeblk.c
+++ b/drivers/block/aoe/aoeblk.c
@@ -68,6 +68,7 @@ static struct attribute *aoe_attrs[] = {
 	&disk_attr_mac.attr,
 	&disk_attr_netif.attr,
 	&disk_attr_fwver.attr,
+	NULL
 };
 
 static const struct attribute_group attr_group = {
-- 
1.4.3.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-11-17  0:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-17  0:07 [GIT PATCH] Misc Driver fixes for 2.6.19-rc6 Greg KH
2006-11-17  0:41 ` [PATCH 1/3] W1: ioremap balanced with iounmap Greg KH
2006-11-17  0:41   ` [PATCH 2/3] debugfs: check return value correctly Greg KH
2006-11-17  0:41     ` [PATCH 3/3] aoe: Add forgotten NULL at end of attribute list in aoeblk.c Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).