From 7404cfaf0e556cf3ff2e629666752d247c71e5ae Mon Sep 17 00:00:00 2001 From: Evgeniy Polyakov Date: Tue, 21 Feb 2012 05:24:40 +0400 Subject: [PATCH] Do not try to cleanup pool if it is NULL --- fs/pohmelfs/pool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/pohmelfs/pool.c b/fs/pohmelfs/pool.c index 60b4e57d92d..b66b9de8cc4 100644 --- a/fs/pohmelfs/pool.c +++ b/fs/pohmelfs/pool.c @@ -58,6 +58,9 @@ void pohmelfs_pool_clean(struct pohmelfs_connection *conn, int conn_num) struct pohmelfs_reconnect *r, *rtmp; int i; + if (!conn || !conn_num) + return; + for (i = 0; i < conn_num; ++i) { c = &conn[i]; -- 2.11.4.GIT