mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Dont touch fs_struct in drivers
The sound drivers and the pnpbios core test for current->root != NULL. This test seems to be unnecessary since we always have rootfs mounted before initializing the drivers. Signed-off-by: Jan Blunck <[email protected]> Acked-by: Christoph Hellwig <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Jaroslav Kysela <[email protected]> Acked-by: Takashi Iwai <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
000cb48ee1
commit
0d63e4f9ea
7 changed files with 6 additions and 19 deletions
|
|
@ -105,8 +105,6 @@ static int pnp_dock_event(int dock, struct pnp_docking_station_info *info)
|
|||
char *argv[3], **envp, *buf, *scratch;
|
||||
int i = 0, value;
|
||||
|
||||
if (!current->fs->root)
|
||||
return -EAGAIN;
|
||||
if (!(envp = kcalloc(20, sizeof(char *), GFP_KERNEL)))
|
||||
return -ENOMEM;
|
||||
if (!(buf = kzalloc(256, GFP_KERNEL))) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue