Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 308494 Details for
Bug 450219
bonding driver can leave rtnl_lock unbalanced
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to correct the rtnl lock usage.
linux-2.6-bonding-fix-locking-bonding_store_bonds-and-slaves.patch (text/plain), 1.39 KB, created by
Fabio Olive Leite
on 2008-06-05 21:57:42 UTC
(
hide
)
Description:
Patch to correct the rtnl lock usage.
Filename:
MIME Type:
Creator:
Fabio Olive Leite
Created:
2008-06-05 21:57:42 UTC
Size:
1.39 KB
patch
obsolete
>--- a/drivers/net/bonding/bond_sysfs.c 2008-06-03 20:11:09.000000000 -0300 >+++ b/drivers/net/bonding/bond_sysfs.c 2008-06-03 20:13:11.000000000 -0300 >@@ -147,29 +147,29 @@ static ssize_t bonding_store_bonds(struc > ": Unable remove bond %s due to open references.\n", > ifname); > res = -EPERM; >- goto out; >+ goto out_unlock; > } > printk(KERN_INFO DRV_NAME > ": %s is being deleted...\n", > bond->dev->name); > bond_destroy(bond); >- up_write(&bonding_rwsem); >- rtnl_unlock(); >- goto out; >+ goto out_unlock; > } > > printk(KERN_ERR DRV_NAME > ": unable to delete non-existent bond %s\n", ifname); > res = -ENODEV; >- up_write(&bonding_rwsem); >- rtnl_unlock(); >- goto out; >+ goto out_unlock; > } > > err_no_cmd: > printk(KERN_ERR DRV_NAME > ": no command found in bonding_masters. Use +ifname or -ifname.\n"); >- res = -EPERM; >+ return -EPERM; >+ >+out_unlock: >+ up_write(&bonding_rwsem); >+ rtnl_unlock(); > > /* Always return either count or an error. If you return 0, you'll > * get called forever, which is bad. >@@ -254,8 +254,8 @@ static ssize_t bonding_store_slaves(stru > printk(KERN_ERR DRV_NAME > ": %s: Unable to update slaves because interface is down.\n", > bond->dev->name); >- ret = -EPERM; >- goto out; >+ /* early return before rtnl_lock() */ >+ return -EPERM; > } > > /* Note: We can't hold bond->lock here, as bond_create grabs it. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 450219
: 308494