Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 337038 Details for
Bug 272100
[Ebuild-request] Request a new ebuild for drivers for DJ Hercules MP3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hdjmod_kernel_3.6.patch
hdjmod_kernel_3.6.patch (text/plain), 1.41 KB, created by
Florian Klink
on 2013-01-27 18:07:48 UTC
(
hide
)
Description:
hdjmod_kernel_3.6.patch
Filename:
MIME Type:
Creator:
Florian Klink
Created:
2013-01-27 18:07:48 UTC
Size:
1.41 KB
patch
obsolete
>diff -Naru hdjmod-1.28o/device.c hdjmod-1.28/device.c >--- hdjmod-1.28o/device.c 2009-01-27 15:25:50.000000000 +0100 >+++ hdjmod-1.28/device.c 2012-10-16 21:52:40.000000000 +0200 >@@ -2393,6 +2393,13 @@ > /* Try to allocate a netlink socket minimizing the risk of collision, > * by starting at the max unit number and counting down */ > for (unit=MAX_LINKS-1;unit>MIN_NETLINK_UNIT;unit--) { >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) >+ nl_sk = netlink_kernel_create( >+ &init_net, >+ unit, >+ THIS_MODULE, >+ NULL); >+#else > nl_sk = netlink_kernel_create( > #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) > &init_net, >@@ -2404,6 +2411,7 @@ > NULL, > #endif > THIS_MODULE); >+#endif > if (nl_sk!=NULL) { > netlink_unit = unit; > return 0; >@@ -2469,6 +2477,20 @@ > return NULL; > } > >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) >+ nlh = nlmsg_put(skb, target_pid, seq, t, size, flags); >+ if(!nlh) { >+ if (skb) { >+ kfree_skb(skb); >+ } >+ return NULL; >+ } >+ data = nlmsg_data(nlh); >+ if (size > 0) { >+ memcpy(data, payload, size); >+ } >+ return skb; >+#else > nlh = NLMSG_PUT(skb, target_pid, seq, t, size); > nlh->nlmsg_flags = flags; > data = NLMSG_DATA(nlh); >@@ -2482,6 +2504,7 @@ > kfree_skb(skb); > } > return NULL; >+#endif > } > > int register_for_netlink(struct snd_hdj_chip* chip,
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 272100
:
204439
|
204441
|
214204
|
223843
|
226341
|
252571
|
252573
|
253143
|
253145
|
255361
|
263537
|
263539
|
263541
|
263543
|
263545
|
263641
|
263643
|
267463
|
337024
|
337026
|
337028
|
337030
|
337032
|
337034
|
337036
| 337038 |
337040
|
337042