Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[~shefty/rdma-dev.git] / drivers / net / wireless / ath / carl9170 / main.c
index 4ae6a584907618d4b45b0273615c606c33600267..511dbe3caf58bdc517cdff1d8399f07bb0881997 100644 (file)
@@ -663,7 +663,7 @@ init:
        }
 
 unlock:
-       if (err && (vif_id != -1)) {
+       if (err && (vif_id >= 0)) {
                vif_priv->active = false;
                bitmap_release_region(&ar->vif_bitmap, vif_id, 0);
                ar->vifs--;