staging: lustre: silence a static checker warning

Static checkers warn that if  cfs_cpt_table_print() returns an error
other than -EFBIG, then it would lead to a double free.  This is true
but cfs_cpt_table_print() only returns -EFBIG on error so it also won't
happen in real life.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dan Carpenter 2014-10-16 10:56:25 +03:00 коммит произвёл Greg Kroah-Hartman
Родитель 22e1dd69fe
Коммит 92a1daba3a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -365,8 +365,8 @@ static int __proc_cpt_table(void *data, int write,
if (rc >= 0) if (rc >= 0)
break; break;
LIBCFS_FREE(buf, len);
if (rc == -EFBIG) { if (rc == -EFBIG) {
LIBCFS_FREE(buf, len);
len <<= 1; len <<= 1;
continue; continue;
} }