diff for duplicates of <4C849D78.9040202@bfs.de> diff --git a/a/1.txt b/N1/1.txt index 368d577..91a1657 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -22,7 +22,7 @@ Kulikov Vasiliy schrieb: > > /* better use fixed size buff*/ > alloc_filename = kmalloc(k_d.name_length + 1, GFP_KERNEL); -> + if (alloc_filename = NULL) +> + if (alloc_filename == NULL) > + return -ENOMEM; > > /* get the filename */ @@ -40,7 +40,8 @@ Kulikov Vasiliy schrieb: > - if ((int)file_to_allocate != 0xfffffffe) { > + if (!IS_ERR(file_to_allocate)) { > -> struct address_space *mapping > file_to_allocate->f_mapping; +> struct address_space *mapping = +> file_to_allocate->f_mapping; > @@ -1379,6 +1382,7 @@ static int cyasgadget_ioctl( > __func__, alloc_filename); > } /* end if (file_to_allocate)*/ @@ -53,7 +54,7 @@ Kulikov Vasiliy schrieb: > return -EFAULT; > > map_filename = kmalloc(k_d.name_length + 1, GFP_KERNEL); -> + if (map_filename = NULL) +> + if (map_filename == NULL) > + return -ENOMEM; > if (copy_from_user(map_filename, k_d.file_name, > k_d.name_length + 1)) { diff --git a/a/content_digest b/N1/content_digest index 4610c7c..aa625f9 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\01283711573-7460-1-git-send-email-segooon@gmail.com\0" "From\0walter harms <wharms@bfs.de>\0" "Subject\0Re: [PATCH 09/14] staging: westbridge: improve error path\0" - "Date\0Mon, 06 Sep 2010 07:51:20 +0000\0" + "Date\0Mon, 06 Sep 2010 09:51:20 +0200\0" "To\0Kulikov Vasiliy <segooon@gmail.com>\0" "Cc\0kernel-janitors@vger.kernel.org" Greg Kroah-Hartman <gregkh@suse.de> @@ -34,7 +34,7 @@ "> \n" "> \t\t/* better use fixed size buff*/\n" "> \t\talloc_filename = kmalloc(k_d.name_length + 1, GFP_KERNEL);\n" - "> +\t\tif (alloc_filename = NULL)\n" + "> +\t\tif (alloc_filename == NULL)\n" "> +\t\t\treturn -ENOMEM;\n" "> \n" "> \t\t/* get the filename */\n" @@ -52,7 +52,8 @@ "> -\t\tif ((int)file_to_allocate != 0xfffffffe) {\n" "> +\t\tif (!IS_ERR(file_to_allocate)) {\n" "> \n" - "> \t\t\tstruct address_space *mapping > \t\t\t\tfile_to_allocate->f_mapping;\n" + "> \t\t\tstruct address_space *mapping =\n" + "> \t\t\t\tfile_to_allocate->f_mapping;\n" "> @@ -1379,6 +1382,7 @@ static int cyasgadget_ioctl(\n" "> \t\t\t\t__func__, alloc_filename);\n" "> \t\t} /* end if (file_to_allocate)*/\n" @@ -65,7 +66,7 @@ "> \t\t\t\treturn -EFAULT;\n" "> \n" "> \t\tmap_filename = kmalloc(k_d.name_length + 1, GFP_KERNEL);\n" - "> +\t\tif (map_filename = NULL)\n" + "> +\t\tif (map_filename == NULL)\n" "> +\t\t\treturn -ENOMEM;\n" "> \t\tif (copy_from_user(map_filename, k_d.file_name,\n" "> \t\t\tk_d.name_length + 1)) {\n" @@ -93,4 +94,4 @@ "> \t\tret_stat = 0;\n" "> \t\tretval = __put_user(ret_stat, (uint32_t __user *)" -9f7dc26e21366b3ea6ed5617638e38c048038e09e4f9936da720b1073f4162cc +512243f206f7e9af640db4c524273a9b1b0add0f2b539386ff2a5192c2b430ef
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.