Re: [LEDE-DEV] [PATCH] procd: initd: fix path allocation in early_insmod

2017-12-29 Thread Rosen Penev
On Thu, Dec 28, 2017 at 8:48 PM, Nathan Hintz wrote: > Noticed that /tmp was not being created on /dev/zram0. This was on > ixp4xx (nslu2) using GCC 6.3 and musl. > > The allocation should be using the length of the passed string > (module path), not the size of the pointer to the string. > clang

[LEDE-DEV] [PATCH] procd: initd: fix path allocation in early_insmod

2017-12-28 Thread Nathan Hintz
Noticed that /tmp was not being created on /dev/zram0. This was on ixp4xx (nslu2) using GCC 6.3 and musl. The allocation should be using the length of the passed string (module path), not the size of the pointer to the string. Signed-off-by: Nathan Hintz --- initd/zram.c | 2 +- 1 file changed