2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/fs/xfs/quota
Julia Lawall d67b1b0325 fs/xfs: Correct NULL test
Test the value that was just allocated rather than the previously tested one.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r@
expression *x;
expression e;
identifier l;
@@

if (x == NULL || ...) {
    ... when forall
    return ...; }
... when != goto l;
    when != x = e
    when != &x
*x == NULL
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
2010-02-13 13:22:53 -06:00
..
xfs_dquot_item.c xfs: kill the unused XFS_QMOPT_* flush flags V2 2010-02-04 09:48:58 +11:00
xfs_dquot_item.h xfs: Don't issue buffer IO direct from AIL push V2 2010-02-02 10:13:42 +11:00
xfs_dquot.c xfs: kill the unused XFS_QMOPT_* flush flags V2 2010-02-04 09:48:58 +11:00
xfs_dquot.h xfs: event tracing support 2009-12-14 23:08:16 -06:00
xfs_qm_bhv.c xfs: quota limit statvfs available blocks 2010-01-21 16:34:23 -06:00
xfs_qm_stats.c xfs: switch to seq_file 2009-09-15 12:29:24 -05:00
xfs_qm_stats.h [XFS] Replace __inline with inline 2008-04-18 11:51:15 +10:00
xfs_qm_syscalls.c xfs: cleanup up xfs_log_force calling conventions 2010-01-21 13:44:49 -06:00
xfs_qm.c fs/xfs: Correct NULL test 2010-02-13 13:22:53 -06:00
xfs_qm.h xfs: kill xfs_qmops 2009-06-08 15:33:32 +02:00
xfs_quota_priv.h xfs: sanitize qh_lock wrappers 2009-02-09 08:47:22 +01:00
xfs_trans_dquot.c xfs: implement quota warnings via netlink 2010-01-21 13:44:28 -06:00