X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmd%2Fdm-path-selector.c;fp=drivers%2Fmd%2Fdm-path-selector.c;h=a28c1c2b4ef5c703d2d5ce4f5c67bb2858483542;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=f10a0c89b3f4e542b3901790504a212d612741ef;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/md/dm-path-selector.c b/drivers/md/dm-path-selector.c index f10a0c89b..a28c1c2b4 100644 --- a/drivers/md/dm-path-selector.c +++ b/drivers/md/dm-path-selector.c @@ -86,7 +86,8 @@ void dm_put_path_selector(struct path_selector_type *pst) if (--psi->use == 0) module_put(psi->pst.module); - BUG_ON(psi->use < 0); + if (psi->use < 0) + BUG(); out: up_read(&_ps_lock);