| To: | "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH v3 05/10] xfs: remove redundant user buffer count checks at xfs_bulkstat |
| From: | Jeff Liu <jeff.liu@xxxxxxxxxx> |
| Date: | Tue, 03 Jun 2014 17:18:24 +0800 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
From: Jie Liu <jeff.liu@xxxxxxxxxx>
Remove the redundant user buffer and count checks as it has already
been validated at xfs_ioc_bulkstat().
Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>
---
fs/xfs/xfs_itable.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index 693e787..d210e24 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -230,9 +230,6 @@ xfs_bulkstat(
*ubcountp = 0;
return 0;
}
- if (!ubcountp || *ubcountp <= 0) {
- return EINVAL;
- }
ubcount = *ubcountp; /* statstruct's */
ubleft = ubcount * statstruct_size; /* bytes */
*ubcountp = ubelem = 0;
--
1.8.3.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v3 04/10] xfs: fix error handling at xfs_inumbers, Jeff Liu |
|---|---|
| Next by Date: | [PATCH v3 06/10] xfs: fix error handling at xfs_bulkstat, Jeff Liu |
| Previous by Thread: | [PATCH v3 04/10] xfs: fix error handling at xfs_inumbers, Jeff Liu |
| Next by Thread: | [PATCH v3 06/10] xfs: fix error handling at xfs_bulkstat, Jeff Liu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |