- kernel-modulec-make_driver_name-can-use-kasrpintf.patch removed from -mm tree

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

 



The patch titled
     kernel/module.c: make_driver_name() can use kasrpintf()
has been removed from the -mm tree.  Its filename was
     kernel-modulec-make_driver_name-can-use-kasrpintf.patch

This patch was dropped because changes in Greg's driver tree destroyed it

------------------------------------------------------
Subject: kernel/module.c: make_driver_name() can use kasrpintf()
From: Mariusz Kozlowski <m.kozlowski@xxxxxxxxxx>

make_driver_name() wants kasprintf().

Signed-off-by: Mariusz Kozlowski <m.kozlowski@xxxxxxxxxx>
Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/module.c |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff -puN kernel/module.c~kernel-modulec-make_driver_name-can-use-kasrpintf kernel/module.c
--- a/kernel/module.c~kernel-modulec-make_driver_name-can-use-kasrpintf
+++ a/kernel/module.c
@@ -2508,15 +2508,7 @@ void print_modules(void)
 #ifdef CONFIG_SYSFS
 static char *make_driver_name(struct device_driver *drv)
 {
-	char *driver_name;
-
-	driver_name = kmalloc(strlen(drv->name) + strlen(drv->bus->name) + 2,
-			      GFP_KERNEL);
-	if (!driver_name)
-		return NULL;
-
-	sprintf(driver_name, "%s:%s", drv->bus->name, drv->name);
-	return driver_name;
+	return kasprintf(GFP_KERNEL, "%s:%s", drv->bus->name, drv->name);
 }
 
 static void module_create_drivers_dir(struct module_kobject *mk)
_

Patches currently in -mm which might be from m.kozlowski@xxxxxxxxxx are

git-mmc.patch
config_highpte-vs-sub-page-page-tables-fix-2.patch
kernel-modulec-make_driver_name-can-use-kasrpintf.patch
reiser4.patch

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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux