Re: [PATCH][ACPI] toshiba_acpi.c: add check for NULL pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/4/05, Hmamouche, Youssef <[email protected]> wrote:
> --- a/drivers/acpi/toshiba_acpi.c       2005-07-15 14:18:57.000000000 -0700
> +++ b/drivers/acpi/toshiba_acpi.c       2005-08-03 21:35:12.000000000 -0700
> @@ -263,6 +263,9 @@
>           * destination so that sscanf can be used on it safely.
>           */
>          tmp_buffer = kmalloc(count + 1, GFP_KERNEL);
> +       if(tmp_buffer == NULL) {
> +               return -ENOMEM;
> +       }

Already fixed in 2.6.13-rc4-mm1.

                                  Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux