[LTP] [PATCH] lib/tst_device.c: Add exception handling of function tst_find_free_loopdev
Petr Vorel
pvorel@suse.cz
Wed Mar 10 12:13:25 CET 2021
Hi Gongyi,
> Because of race condition or abnormal env, set_dev_path may be
> return 1. And when set_dev_path return 1 in tst_find_free_loopdev,
You mean return 0, right?
> we should return Immediately.
Not really sure about this patch, mainly question for others.
Could you please more describe your problem?
Kind regards,
Petr
More information about the ltp
mailing list