mirror of
https://github.com/linux-msm/rmtfs.git
synced 2026-04-09 15:02:31 +02:00
rmtfs.c: Exit when fail to get rprocfd
When -s option is specified rmtfs handled the start of rproc but at init may be the /sys entries are not fully populated yet due to module load/setup so exit with 1 and let systemd restart the service. Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
df6c19d033
commit
29eb4a5b06
5
rmtfs.c
5
rmtfs.c
@@ -517,6 +517,11 @@ int main(int argc, char **argv)
|
|||||||
/* enable sync for the mss rproc instance */
|
/* enable sync for the mss rproc instance */
|
||||||
case 's':
|
case 's':
|
||||||
rprocfd = rproc_init();
|
rprocfd = rproc_init();
|
||||||
|
if (rprocfd < 0) {
|
||||||
|
fprintf(stderr, "Failed to get rprocfd\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* -v is for verbose */
|
/* -v is for verbose */
|
||||||
|
|||||||
Reference in New Issue
Block a user