The patch titled
     partitions: use kasprintf
has been removed from the -mm tree.  Its filename was
     partitions-use-kasprintf.patch

This patch was dropped because make_block_name() got deleted in Greg's driver 
tree

------------------------------------------------------
Subject: partitions: use kasprintf
From: Akinobu Mita <[EMAIL PROTECTED]>

Use kasprintf instead of kmalloc()-strcpy()-strcat().

Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 fs/partitions/check.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff -puN fs/partitions/check.c~partitions-use-kasprintf fs/partitions/check.c
--- a/fs/partitions/check.c~partitions-use-kasprintf
+++ a/fs/partitions/check.c
@@ -409,16 +409,11 @@ void add_partition(struct gendisk *disk,
 static char *make_block_name(struct gendisk *disk)
 {
        char *name;
-       static char *block_str = "block:";
-       int size;
        char *s;
 
-       size = strlen(block_str) + strlen(disk->disk_name) + 1;
-       name = kmalloc(size, GFP_KERNEL);
+       name = kasprintf(GFP_KERNEL, "block:%s", disk->disk_name);
        if (!name)
                return NULL;
-       strcpy(name, block_str);
-       strcat(name, disk->disk_name);
        /* ewww... some of these buggers have / in name... */
        s = strchr(name, '/');
        if (s)
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

git-net.patch
git-battery.patch
fs-use-hlist_unhashed.patch
partitions-use-kasprintf.patch
fs-use-list_for_each_entry_reverse-and-kill-sb_entry.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to