|
@@ -94,7 +94,7 @@ struct wakeup_source *wakeup_source_create(const char *name)
|
|
if (!ws)
|
|
if (!ws)
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
- wakeup_source_prepare(ws, name ? kstrdup(name, GFP_KERNEL) : NULL);
|
|
|
|
|
|
+ wakeup_source_prepare(ws, name ? kstrdup_const(name, GFP_KERNEL) : NULL);
|
|
return ws;
|
|
return ws;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(wakeup_source_create);
|
|
EXPORT_SYMBOL_GPL(wakeup_source_create);
|
|
@@ -157,7 +157,7 @@ void wakeup_source_destroy(struct wakeup_source *ws)
|
|
|
|
|
|
wakeup_source_drop(ws);
|
|
wakeup_source_drop(ws);
|
|
wakeup_source_record(ws);
|
|
wakeup_source_record(ws);
|
|
- kfree(ws->name);
|
|
|
|
|
|
+ kfree_const(ws->name);
|
|
kfree(ws);
|
|
kfree(ws);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(wakeup_source_destroy);
|
|
EXPORT_SYMBOL_GPL(wakeup_source_destroy);
|