mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
scst_lib: Suppress two Coverity false positives about freeing stack memory
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7807 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -5888,6 +5888,7 @@ ssize_t scst_readv(struct file *file, const struct iovec *vec,
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
ret = vfs_iter_read(file, &iter, pos, 0);
|
||||
BUG_ON(iov == iovstack);
|
||||
kfree(iov);
|
||||
return ret;
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) || \
|
||||
@@ -5926,6 +5927,7 @@ ssize_t scst_writev(struct file *file, const struct iovec *vec,
|
||||
file_start_write(file);
|
||||
ret = vfs_iter_write(file, &iter, pos, 0);
|
||||
file_end_write(file);
|
||||
BUG_ON(iov == iovstack);
|
||||
kfree(iov);
|
||||
return ret;
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) || \
|
||||
|
||||
Reference in New Issue
Block a user