Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196039
b: refs/heads/master
c: 1653268
h: refs/heads/master
i:
  196037: a397aa8
  196035: 5d5c34c
  196031: 00463a6
v: v3
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed May 21, 2010
1 parent b4c7e70 commit 68d5159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffa156590f98b750161757a16c37ac8e152a7859
refs/heads/master: 1653268b1b538981df9bb85d637456530938be6c
4 changes: 1 addition & 3 deletions trunk/drivers/base/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ 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);
driver_name = kasprintf(GFP_KERNEL, "%s:%s", drv->bus->name, drv->name);
if (!driver_name)
return NULL;

sprintf(driver_name, "%s:%s", drv->bus->name, drv->name);
return driver_name;
}

Expand Down

0 comments on commit 68d5159

Please sign in to comment.