ES968: kmalloc params fix

ES968: kmalloc params fix

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



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/

 
 
 

ES968: kmalloc params fix

Post by Pablo Menichin » Fri, 11 Apr 2003 05:30:07


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.67/sound/isa/sb/sb16.c    Tue Apr  8 15:24:31 2003

                                       const struct pnp_card_device_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)

-
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. ALS100: 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

--- 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/

2. about socket program

3. PATCH: clean up es968, fix build

4. LKML

5. fix weird kmalloc bug

6. Tape backup from another system

7. optimize fixed size kmalloc calls

8. Do you check for errors with "< 0" or "== -1"?

9. kmalloc() fix^2

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

11. v850 obsolete params fix

12. pnp api changes to sound/isa/sb/es968.c

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