kfifo: Make kfifo_initialized work after kfifo_free
[sfrench/cifs-2.6.git] / kernel / kfifo.c
index 498cabba225e9c90fa37edc1cda2120dbcd27a1f..559fb5582b602343def45aeeada25d1d1550dfa1 100644 (file)
@@ -97,6 +97,7 @@ EXPORT_SYMBOL(kfifo_alloc);
 void kfifo_free(struct kfifo *fifo)
 {
        kfree(fifo->buffer);
+       _kfifo_init(fifo, NULL, 0);
 }
 EXPORT_SYMBOL(kfifo_free);