Re: [PATCH] ufs: Reinstate NULL pointer checks for regulators

2015-04-28 Thread Akinobu Mita
2015-04-16 4:10 GMT+09:00 Bjorn Andersson bjorn.anders...@sonymobile.com: The cleanup during the introduction of regulator_set_load() was a too optimistic and re-opened an issue with vreg being dereferenced while being NULL. So reinstate the NULL checks and add back the BUG_ON() to follow the

[PATCH] ufs: Reinstate NULL pointer checks for regulators

2015-04-15 Thread Bjorn Andersson
The cleanup during the introduction of regulator_set_load() was a too optimistic and re-opened an issue with vreg being dereferenced while being NULL. So reinstate the NULL checks and add back the BUG_ON() to follow the general coding convention of the implementation. Fixes: 7b16a07c3293 (ufs: