ALS100: kmalloc params fix

ALS100: kmalloc params fix

Post by Pablo Menichin » Tue, 01 Apr 2003 19:50:22



This patch swaps the arguments of kmalloc, and relax the type
of allocation to GFP_KERNEL as others PnP functions do.

Pablo

--- linux-2.5.66/sound/isa/als100.c     Sun Mar 30 14:33:19 2003

                                            const struct pnp_card_id *id)
 {
        struct pnp_dev *pdev;
-       struct pnp_resource_table * cfg = kmalloc(GFP_ATOMIC, sizeof(struct pnp_resource_table));
+       struct pnp_resource_table *cfg = kmalloc(sizeof(*cfg), GFP_KERNEL);
        int err;
        if (!cfg)
                return -ENOMEM;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. ES968: kmalloc params fix

This patch swaps the arguments of kmalloc, and relax the type
of allocation to GFP_KERNEL as others PnP functions do.

Pablo

--- sound/isa/sb/es968.c.orig   Sun Mar 30 14:30:08 2003

                                        const struct pnp_card_id *id)
 {
        struct pnp_dev *pdev;
-       struct pnp_resource_table * cfg = kmalloc(GFP_ATOMIC, sizeof(struct pnp_resource_table));
+       struct pnp_resource_table *cfg = kmalloc(sizeof(*cfg), GFP_KERNEL);
        int err;
        if (!cfg)
                return -ENOMEM;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. ATI All In Wonder Pro (Radeon)

3. fix memleak in sound/isa/als100.c

4. FreeBSD & Unix Web Ring

5. fix weird kmalloc bug

6. Help Problem With MAG DX-17F

7. optimize fixed size kmalloc calls

8. Sun Sys-admin wanted

9. kmalloc() fix^2

10. PARAM 3/4: PARAM() support in modules.

11. v850 obsolete params fix

12. PATCH: fix ALi 32bitisms, fix ALi FIFO, fix ALi IRQ crash

13. Avance Logic ALS100 & 4.0