Re: [PATCH] of/unittest: fix infinite loop in of_unittest_destroy_tracked_overlays()

2016-03-03 Thread Rob Herring
On Wed, Mar 02, 2016 at 08:24:49PM +0900, Sergey Senozhatsky wrote: > of_overlay_destroy() can return `-ENODEV' error code once it > failed to find the requested overlay in `ov_idr'. However, > of_unittest_destroy_tracked_overlays() does not handle this > error code correctly and continues to call

Re: [PATCH] of/unittest: fix infinite loop in of_unittest_destroy_tracked_overlays()

2016-03-02 Thread Petr Mladek
On Wed 2016-03-02 20:24:49, Sergey Senozhatsky wrote: > of_overlay_destroy() can return `-ENODEV' error code once it > failed to find the requested overlay in `ov_idr'. However, > of_unittest_destroy_tracked_overlays() does not handle this > error code correctly and continues to call of_overlay_des

[PATCH] of/unittest: fix infinite loop in of_unittest_destroy_tracked_overlays()

2016-03-02 Thread Sergey Senozhatsky
of_overlay_destroy() can return `-ENODEV' error code once it failed to find the requested overlay in `ov_idr'. However, of_unittest_destroy_tracked_overlays() does not handle this error code correctly and continues to call of_overlay_destroy() on the 'missing' overlay over and over again. This resu