Fix unlocking of spinlock when we should not

main
Jakob Bornecrantz 2007-07-19 16:58:23 +02:00 committed by Jakob Bornecrantz
parent 70fd9351ed
commit 43c9abdedc
1 changed files with 2 additions and 4 deletions

View File

@ -59,10 +59,8 @@ again:
}
ret = idr_get_new_above(&dev->mode_config.crtc_idr, ptr, 1, &new_id);
if (ret == -EAGAIN) {
spin_unlock(&dev->mode_config.config_lock);
goto again;
}
if (ret == -EAGAIN)
goto again;
return new_id;
}