~ubuntu-branches/ubuntu/vivid/ndiswrapper/vivid

« back to all changes in this revision

Viewing changes to driver/wrapper.c

  • Committer: Package Import Robot
  • Author(s): Julian Andres Klode
  • Date: 2012-03-05 16:49:02 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120305164902-rrir76um4yq4eimb
Tags: 1.57-1
* Imported Upstream version 1.57
  - Fixes build with kernel 3.2 (Closes: #655223, LP: #910597)
* Enable hardening build flags (Closes: #655249)
* patches/ndiswrapper-harden.patch: Use $(shell X) instead of `X`
* Update to Policy 3.9.3, copyright-format 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
static void module_cleanup(void)
62
62
{
63
63
        loader_exit();
64
 
#ifdef ENABLE_USB
65
64
        usb_exit();
66
 
#endif
67
 
 
68
65
        wrap_procfs_remove();
69
66
        wrapndis_exit();
70
67
        ndis_exit();
71
 
        rtl_exit();
72
 
        crt_exit();
73
68
        ntoskernel_exit();
74
69
        wrapmem_exit();
75
70
}
76
71
 
77
72
static int __init wrapper_init(void)
78
73
{
 
74
#ifdef TAINT_OOT_MODULE
 
75
        add_taint(TAINT_OOT_MODULE);
 
76
#endif
79
77
        printk(KERN_INFO "%s version %s loaded (smp=%s, preempt=%s)\n",
80
78
               DRIVER_NAME, DRIVER_VERSION,
81
79
#ifdef CONFIG_SMP
93
91
#endif
94
92
                );
95
93
 
96
 
        if (wrapmem_init() || ntoskernel_init() || crt_init() ||
97
 
            rtl_init() || ndis_init() || wrapndis_init() ||
98
 
#ifdef ENABLE_USB
99
 
            usb_init() ||
100
 
#endif
101
 
            wrap_procfs_init() || loader_init()) {
 
94
        if (wrapmem_init() || ntoskernel_init() || ndis_init() ||
 
95
            wrapndis_init() || usb_init() || wrap_procfs_init() ||
 
96
            loader_init()) {
102
97
                module_cleanup();
103
98
                ERROR("%s: initialization failed", DRIVER_NAME);
104
99
                return -EINVAL;