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 185491 Details for
Bug 236719
Nokia phone causes BUG from usbnet probe
[?]
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]
Test patch 2 - zero the inftdata
linux-2.6.18-36.el5-236719-2.diff (text/plain), 2.13 KB, created by
Pete Zaitcev
on 2007-09-04 01:30:20 UTC
(
hide
)
Description:
Test patch 2 - zero the inftdata
Filename:
MIME Type:
Creator:
Pete Zaitcev
Created:
2007-09-04 01:30:20 UTC
Size:
2.13 KB
patch
obsolete
>diff -urp -X dontdiff linux-2.6.18-36.el5/drivers/usb/net/rndis_host.c linux-2.6.18-36.el5-t1/drivers/usb/net/rndis_host.c >--- linux-2.6.18-36.el5/drivers/usb/net/rndis_host.c 2006-09-19 20:42:06.000000000 -0700 >+++ linux-2.6.18-36.el5-t1/drivers/usb/net/rndis_host.c 2007-09-03 18:17:17.000000000 -0700 >@@ -379,6 +379,7 @@ static int rndis_bind(struct usbnet *dev > { > int retval; > struct net_device *net = dev->net; >+ struct cdc_state *info = (void *) &dev->data; > union { > void *buf; > struct rndis_msg_hdr *header; >@@ -397,7 +398,7 @@ static int rndis_bind(struct usbnet *dev > return -ENOMEM; > retval = usbnet_generic_cdc_bind(dev, intf); > if (retval < 0) >- goto done; >+ goto fail; > > net->hard_header_len += sizeof (struct rndis_data_hdr); > >@@ -412,10 +413,7 @@ static int rndis_bind(struct usbnet *dev > if (unlikely(retval < 0)) { > /* it might not even be an RNDIS device!! */ > dev_err(&intf->dev, "RNDIS init failed, %d\n", retval); >-fail: >- usb_driver_release_interface(driver_of(intf), >- ((struct cdc_state *)&(dev->data))->data); >- goto done; >+ goto fail; > } > dev->hard_mtu = le32_to_cpu(u.init_c->max_transfer_size); > /* REVISIT: peripheral "alignment" request is ignored ... */ >@@ -431,7 +429,7 @@ fail: > retval = rndis_command(dev, u.header); > if (unlikely(retval < 0)) { > dev_err(&intf->dev, "rndis get ethaddr, %d\n", retval); >- goto fail; >+ goto fail_and_release; > } > tmp = le32_to_cpu(u.get_c->offset); > if (unlikely((tmp + 8) > (1024 - ETH_ALEN) >@@ -439,7 +437,7 @@ fail: > dev_err(&intf->dev, "rndis ethaddr off %d len %d ?\n", > tmp, le32_to_cpu(u.get_c->len)); > retval = -EDOM; >- goto fail; >+ goto fail_and_release; > } > memcpy(net->dev_addr, tmp + (char *)&u.get_c->request_id, ETH_ALEN); > >@@ -455,11 +453,16 @@ fail: > retval = rndis_command(dev, u.header); > if (unlikely(retval < 0)) { > dev_err(&intf->dev, "rndis set packet filter, %d\n", retval); >- goto fail; >+ goto fail_and_release; > } > >- retval = 0; >-done: >+ kfree(u.buf); >+ return 0; >+ >+fail_and_release: >+ usb_set_intfdata(info->data, NULL); >+ usb_driver_release_interface(driver_of(intf), info->data); >+fail: > kfree(u.buf); > return retval; > }
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 236719
:
185491
|
213261
|
247231