diff options
-rw-r--r-- | arch/x86/kernel/vsyscall_64.c | 2 | ||||
-rw-r--r-- | drivers/ata/libata-sff.c | 2 | ||||
-rw-r--r-- | drivers/base/dmapool.c | 2 | ||||
-rw-r--r-- | drivers/char/random.c | 2 | ||||
-rw-r--r-- | fs/autofs/waitq.c | 2 | ||||
-rw-r--r-- | fs/autofs4/waitq.c | 2 | ||||
-rw-r--r-- | fs/compat_ioctl.c | 2 | ||||
-rw-r--r-- | fs/eventpoll.c | 2 | ||||
-rw-r--r-- | fs/ext3/fsync.c | 2 | ||||
-rw-r--r-- | fs/ext3/inode.c | 2 | ||||
-rw-r--r-- | fs/jbd/journal.c | 9 | ||||
-rw-r--r-- | fs/jbd/transaction.c | 12 | ||||
-rw-r--r-- | fs/nls/nls_base.c | 2 | ||||
-rw-r--r-- | init/do_mounts_rd.c | 6 | ||||
-rw-r--r-- | kernel/futex.c | 4 | ||||
-rw-r--r-- | kernel/kexec.c | 4 | ||||
-rw-r--r-- | mm/hugetlb.c | 2 | ||||
-rw-r--r-- | mm/mremap.c | 4 | ||||
-rw-r--r-- | mm/vmscan.c | 2 | ||||
-rw-r--r-- | security/selinux/xfrm.c | 2 |
20 files changed, 34 insertions, 33 deletions
diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c index cf7a47b35e10..585541ca1a7e 100644 --- a/arch/x86/kernel/vsyscall_64.c +++ b/arch/x86/kernel/vsyscall_64.c | |||
@@ -172,7 +172,7 @@ time_t __vsyscall(1) vtime(time_t *t) | |||
172 | if (unlikely(!__vsyscall_gtod_data.sysctl_enabled)) | 172 | if (unlikely(!__vsyscall_gtod_data.sysctl_enabled)) |
173 | return time_syscall(t); | 173 | return time_syscall(t); |
174 | 174 | ||
175 | vgettimeofday(&tv, 0); | 175 | vgettimeofday(&tv, NULL); |
176 | result = tv.tv_sec; | 176 | result = tv.tv_sec; |
177 | if (t) | 177 | if (t) |
178 | *t = result; | 178 | *t = result; |
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 026439e05afe..c7501058d07d 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -882,7 +882,7 @@ unsigned long ata_pci_default_filter(struct ata_device *adev, unsigned long xfer | |||
882 | /* Filter out DMA modes if the device has been configured by | 882 | /* Filter out DMA modes if the device has been configured by |
883 | the BIOS as PIO only */ | 883 | the BIOS as PIO only */ |
884 | 884 | ||
885 | if (adev->link->ap->ioaddr.bmdma_addr == 0) | 885 | if (adev->link->ap->ioaddr.bmdma_addr == NULL) |
886 | xfer_mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA); | 886 | xfer_mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA); |
887 | return xfer_mask; | 887 | return xfer_mask; |
888 | } | 888 | } |
diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c index fbae8674e491..5beddc322e6f 100644 --- a/drivers/base/dmapool.c +++ b/drivers/base/dmapool.c | |||
@@ -366,7 +366,7 @@ dma_pool_free (struct dma_pool *pool, void *vaddr, dma_addr_t dma) | |||
366 | unsigned long flags; | 366 | unsigned long flags; |
367 | int map, block; | 367 | int map, block; |
368 | 368 | ||
369 | if ((page = pool_find_page (pool, dma)) == 0) { | 369 | if ((page = pool_find_page(pool, dma)) == NULL) { |
370 | if (pool->dev) | 370 | if (pool->dev) |
371 | dev_err(pool->dev, "dma_pool_free %s, %p/%lx (bad dma)\n", | 371 | dev_err(pool->dev, "dma_pool_free %s, %p/%lx (bad dma)\n", |
372 | pool->name, vaddr, (unsigned long) dma); | 372 | pool->name, vaddr, (unsigned long) dma); |
diff --git a/drivers/char/random.c b/drivers/char/random.c index af274e5a25ee..1756b1f7cb72 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
@@ -649,7 +649,7 @@ EXPORT_SYMBOL_GPL(add_input_randomness); | |||
649 | 649 | ||
650 | void add_interrupt_randomness(int irq) | 650 | void add_interrupt_randomness(int irq) |
651 | { | 651 | { |
652 | if (irq >= NR_IRQS || irq_timer_state[irq] == 0) | 652 | if (irq >= NR_IRQS || irq_timer_state[irq] == NULL) |
653 | return; | 653 | return; |
654 | 654 | ||
655 | DEBUG_ENT("irq event %d\n", irq); | 655 | DEBUG_ENT("irq event %d\n", irq); |
diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c index 19a9cafb5ddf..be46805972f0 100644 --- a/fs/autofs/waitq.c +++ b/fs/autofs/waitq.c | |||
@@ -182,7 +182,7 @@ int autofs_wait_release(struct autofs_sb_info *sbi, autofs_wqt_t wait_queue_toke | |||
182 | { | 182 | { |
183 | struct autofs_wait_queue *wq, **wql; | 183 | struct autofs_wait_queue *wq, **wql; |
184 | 184 | ||
185 | for ( wql = &sbi->queues ; (wq = *wql) != 0 ; wql = &wq->next ) { | 185 | for (wql = &sbi->queues; (wq = *wql) != NULL; wql = &wq->next) { |
186 | if ( wq->wait_queue_token == wait_queue_token ) | 186 | if ( wq->wait_queue_token == wait_queue_token ) |
187 | break; | 187 | break; |
188 | } | 188 | } |
diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c index 0d041a9cb348..1fe28e4754c2 100644 --- a/fs/autofs4/waitq.c +++ b/fs/autofs4/waitq.c | |||
@@ -376,7 +376,7 @@ int autofs4_wait_release(struct autofs_sb_info *sbi, autofs_wqt_t wait_queue_tok | |||
376 | struct autofs_wait_queue *wq, **wql; | 376 | struct autofs_wait_queue *wq, **wql; |
377 | 377 | ||
378 | mutex_lock(&sbi->wq_mutex); | 378 | mutex_lock(&sbi->wq_mutex); |
379 | for (wql = &sbi->queues ; (wq = *wql) != 0 ; wql = &wq->next) { | 379 | for (wql = &sbi->queues; (wq = *wql) != NULL; wql = &wq->next) { |
380 | if (wq->wait_queue_token == wait_queue_token) | 380 | if (wq->wait_queue_token == wait_queue_token) |
381 | break; | 381 | break; |
382 | } | 382 | } |
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 6dacd39bf048..a4284ccac1f9 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -3001,7 +3001,7 @@ static int __init init_sys32_ioctl(void) | |||
3001 | int i; | 3001 | int i; |
3002 | 3002 | ||
3003 | for (i = 0; i < ARRAY_SIZE(ioctl_start); i++) { | 3003 | for (i = 0; i < ARRAY_SIZE(ioctl_start); i++) { |
3004 | if (ioctl_start[i].next != 0) { | 3004 | if (ioctl_start[i].next) { |
3005 | printk("ioctl translation %d bad\n",i); | 3005 | printk("ioctl translation %d bad\n",i); |
3006 | return -1; | 3006 | return -1; |
3007 | } | 3007 | } |
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 77b9953624f4..de6189291954 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c | |||
@@ -463,7 +463,7 @@ static void ep_free(struct eventpoll *ep) | |||
463 | * holding "epmutex" we can be sure that no file cleanup code will hit | 463 | * holding "epmutex" we can be sure that no file cleanup code will hit |
464 | * us during this operation. So we can avoid the lock on "ep->lock". | 464 | * us during this operation. So we can avoid the lock on "ep->lock". |
465 | */ | 465 | */ |
466 | while ((rbp = rb_first(&ep->rbr)) != 0) { | 466 | while ((rbp = rb_first(&ep->rbr)) != NULL) { |
467 | epi = rb_entry(rbp, struct epitem, rbn); | 467 | epi = rb_entry(rbp, struct epitem, rbn); |
468 | ep_remove(ep, epi); | 468 | ep_remove(ep, epi); |
469 | } | 469 | } |
diff --git a/fs/ext3/fsync.c b/fs/ext3/fsync.c index dd1fd3c0fc05..a588e23841d4 100644 --- a/fs/ext3/fsync.c +++ b/fs/ext3/fsync.c | |||
@@ -47,7 +47,7 @@ int ext3_sync_file(struct file * file, struct dentry *dentry, int datasync) | |||
47 | struct inode *inode = dentry->d_inode; | 47 | struct inode *inode = dentry->d_inode; |
48 | int ret = 0; | 48 | int ret = 0; |
49 | 49 | ||
50 | J_ASSERT(ext3_journal_current_handle() == 0); | 50 | J_ASSERT(ext3_journal_current_handle() == NULL); |
51 | 51 | ||
52 | /* | 52 | /* |
53 | * data=writeback: | 53 | * data=writeback: |
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index 2f2b6864db10..3dec003b773e 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
@@ -1028,7 +1028,7 @@ struct buffer_head *ext3_getblk(handle_t *handle, struct inode *inode, | |||
1028 | } | 1028 | } |
1029 | if (buffer_new(&dummy)) { | 1029 | if (buffer_new(&dummy)) { |
1030 | J_ASSERT(create != 0); | 1030 | J_ASSERT(create != 0); |
1031 | J_ASSERT(handle != 0); | 1031 | J_ASSERT(handle != NULL); |
1032 | 1032 | ||
1033 | /* | 1033 | /* |
1034 | * Now that we do not always journal data, we should | 1034 | * Now that we do not always journal data, we should |
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 65c290470664..5d9fec0b7ebd 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c | |||
@@ -217,7 +217,7 @@ static int journal_start_thread(journal_t *journal) | |||
217 | if (IS_ERR(t)) | 217 | if (IS_ERR(t)) |
218 | return PTR_ERR(t); | 218 | return PTR_ERR(t); |
219 | 219 | ||
220 | wait_event(journal->j_wait_done_commit, journal->j_task != 0); | 220 | wait_event(journal->j_wait_done_commit, journal->j_task != NULL); |
221 | return 0; | 221 | return 0; |
222 | } | 222 | } |
223 | 223 | ||
@@ -229,7 +229,8 @@ static void journal_kill_thread(journal_t *journal) | |||
229 | while (journal->j_task) { | 229 | while (journal->j_task) { |
230 | wake_up(&journal->j_wait_commit); | 230 | wake_up(&journal->j_wait_commit); |
231 | spin_unlock(&journal->j_state_lock); | 231 | spin_unlock(&journal->j_state_lock); |
232 | wait_event(journal->j_wait_done_commit, journal->j_task == 0); | 232 | wait_event(journal->j_wait_done_commit, |
233 | journal->j_task == NULL); | ||
233 | spin_lock(&journal->j_state_lock); | 234 | spin_lock(&journal->j_state_lock); |
234 | } | 235 | } |
235 | spin_unlock(&journal->j_state_lock); | 236 | spin_unlock(&journal->j_state_lock); |
@@ -1651,14 +1652,14 @@ static struct journal_head *journal_alloc_journal_head(void) | |||
1651 | atomic_inc(&nr_journal_heads); | 1652 | atomic_inc(&nr_journal_heads); |
1652 | #endif | 1653 | #endif |
1653 | ret = kmem_cache_alloc(journal_head_cache, GFP_NOFS); | 1654 | ret = kmem_cache_alloc(journal_head_cache, GFP_NOFS); |
1654 | if (ret == 0) { | 1655 | if (ret == NULL) { |
1655 | jbd_debug(1, "out of memory for journal_head\n"); | 1656 | jbd_debug(1, "out of memory for journal_head\n"); |
1656 | if (time_after(jiffies, last_warning + 5*HZ)) { | 1657 | if (time_after(jiffies, last_warning + 5*HZ)) { |
1657 | printk(KERN_NOTICE "ENOMEM in %s, retrying.\n", | 1658 | printk(KERN_NOTICE "ENOMEM in %s, retrying.\n", |
1658 | __FUNCTION__); | 1659 | __FUNCTION__); |
1659 | last_warning = jiffies; | 1660 | last_warning = jiffies; |
1660 | } | 1661 | } |
1661 | while (ret == 0) { | 1662 | while (ret == NULL) { |
1662 | yield(); | 1663 | yield(); |
1663 | ret = kmem_cache_alloc(journal_head_cache, GFP_NOFS); | 1664 | ret = kmem_cache_alloc(journal_head_cache, GFP_NOFS); |
1664 | } | 1665 | } |
diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c index 0282deb8ff2d..9841b1e5af03 100644 --- a/fs/jbd/transaction.c +++ b/fs/jbd/transaction.c | |||
@@ -1172,7 +1172,7 @@ int journal_dirty_metadata(handle_t *handle, struct buffer_head *bh) | |||
1172 | } | 1172 | } |
1173 | 1173 | ||
1174 | /* That test should have eliminated the following case: */ | 1174 | /* That test should have eliminated the following case: */ |
1175 | J_ASSERT_JH(jh, jh->b_frozen_data == 0); | 1175 | J_ASSERT_JH(jh, jh->b_frozen_data == NULL); |
1176 | 1176 | ||
1177 | JBUFFER_TRACE(jh, "file as BJ_Metadata"); | 1177 | JBUFFER_TRACE(jh, "file as BJ_Metadata"); |
1178 | spin_lock(&journal->j_list_lock); | 1178 | spin_lock(&journal->j_list_lock); |
@@ -1522,7 +1522,7 @@ static void __journal_temp_unlink_buffer(struct journal_head *jh) | |||
1522 | 1522 | ||
1523 | J_ASSERT_JH(jh, jh->b_jlist < BJ_Types); | 1523 | J_ASSERT_JH(jh, jh->b_jlist < BJ_Types); |
1524 | if (jh->b_jlist != BJ_None) | 1524 | if (jh->b_jlist != BJ_None) |
1525 | J_ASSERT_JH(jh, transaction != 0); | 1525 | J_ASSERT_JH(jh, transaction != NULL); |
1526 | 1526 | ||
1527 | switch (jh->b_jlist) { | 1527 | switch (jh->b_jlist) { |
1528 | case BJ_None: | 1528 | case BJ_None: |
@@ -1591,11 +1591,11 @@ __journal_try_to_free_buffer(journal_t *journal, struct buffer_head *bh) | |||
1591 | if (buffer_locked(bh) || buffer_dirty(bh)) | 1591 | if (buffer_locked(bh) || buffer_dirty(bh)) |
1592 | goto out; | 1592 | goto out; |
1593 | 1593 | ||
1594 | if (jh->b_next_transaction != 0) | 1594 | if (jh->b_next_transaction != NULL) |
1595 | goto out; | 1595 | goto out; |
1596 | 1596 | ||
1597 | spin_lock(&journal->j_list_lock); | 1597 | spin_lock(&journal->j_list_lock); |
1598 | if (jh->b_transaction != 0 && jh->b_cp_transaction == 0) { | 1598 | if (jh->b_transaction != NULL && jh->b_cp_transaction == NULL) { |
1599 | if (jh->b_jlist == BJ_SyncData || jh->b_jlist == BJ_Locked) { | 1599 | if (jh->b_jlist == BJ_SyncData || jh->b_jlist == BJ_Locked) { |
1600 | /* A written-back ordered data buffer */ | 1600 | /* A written-back ordered data buffer */ |
1601 | JBUFFER_TRACE(jh, "release data"); | 1601 | JBUFFER_TRACE(jh, "release data"); |
@@ -1603,7 +1603,7 @@ __journal_try_to_free_buffer(journal_t *journal, struct buffer_head *bh) | |||
1603 | journal_remove_journal_head(bh); | 1603 | journal_remove_journal_head(bh); |
1604 | __brelse(bh); | 1604 | __brelse(bh); |
1605 | } | 1605 | } |
1606 | } else if (jh->b_cp_transaction != 0 && jh->b_transaction == 0) { | 1606 | } else if (jh->b_cp_transaction != NULL && jh->b_transaction == NULL) { |
1607 | /* written-back checkpointed metadata buffer */ | 1607 | /* written-back checkpointed metadata buffer */ |
1608 | if (jh->b_jlist == BJ_None) { | 1608 | if (jh->b_jlist == BJ_None) { |
1609 | JBUFFER_TRACE(jh, "remove from checkpoint list"); | 1609 | JBUFFER_TRACE(jh, "remove from checkpoint list"); |
@@ -1963,7 +1963,7 @@ void __journal_file_buffer(struct journal_head *jh, | |||
1963 | 1963 | ||
1964 | J_ASSERT_JH(jh, jh->b_jlist < BJ_Types); | 1964 | J_ASSERT_JH(jh, jh->b_jlist < BJ_Types); |
1965 | J_ASSERT_JH(jh, jh->b_transaction == transaction || | 1965 | J_ASSERT_JH(jh, jh->b_transaction == transaction || |
1966 | jh->b_transaction == 0); | 1966 | jh->b_transaction == NULL); |
1967 | 1967 | ||
1968 | if (jh->b_transaction && jh->b_jlist == jlist) | 1968 | if (jh->b_transaction && jh->b_jlist == jlist) |
1969 | return; | 1969 | return; |
diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c index e7905816c4ca..64965e1c21c4 100644 --- a/fs/nls/nls_base.c +++ b/fs/nls/nls_base.c | |||
@@ -111,7 +111,7 @@ utf8_wctomb(__u8 *s, wchar_t wc, int maxlen) | |||
111 | int c, nc; | 111 | int c, nc; |
112 | const struct utf8_table *t; | 112 | const struct utf8_table *t; |
113 | 113 | ||
114 | if (s == 0) | 114 | if (!s) |
115 | return 0; | 115 | return 0; |
116 | 116 | ||
117 | l = wc; | 117 | l = wc; |
diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index ed652f40f075..3ac5904d1b12 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c | |||
@@ -57,7 +57,7 @@ identify_ramdisk_image(int fd, int start_block) | |||
57 | unsigned char *buf; | 57 | unsigned char *buf; |
58 | 58 | ||
59 | buf = kmalloc(size, GFP_KERNEL); | 59 | buf = kmalloc(size, GFP_KERNEL); |
60 | if (buf == 0) | 60 | if (!buf) |
61 | return -1; | 61 | return -1; |
62 | 62 | ||
63 | minixsb = (struct minix_super_block *) buf; | 63 | minixsb = (struct minix_super_block *) buf; |
@@ -407,12 +407,12 @@ static int __init crd_load(int in_fd, int out_fd) | |||
407 | crd_infd = in_fd; | 407 | crd_infd = in_fd; |
408 | crd_outfd = out_fd; | 408 | crd_outfd = out_fd; |
409 | inbuf = kmalloc(INBUFSIZ, GFP_KERNEL); | 409 | inbuf = kmalloc(INBUFSIZ, GFP_KERNEL); |
410 | if (inbuf == 0) { | 410 | if (!inbuf) { |
411 | printk(KERN_ERR "RAMDISK: Couldn't allocate gzip buffer\n"); | 411 | printk(KERN_ERR "RAMDISK: Couldn't allocate gzip buffer\n"); |
412 | return -1; | 412 | return -1; |
413 | } | 413 | } |
414 | window = kmalloc(WSIZE, GFP_KERNEL); | 414 | window = kmalloc(WSIZE, GFP_KERNEL); |
415 | if (window == 0) { | 415 | if (!window) { |
416 | printk(KERN_ERR "RAMDISK: Couldn't allocate gzip window\n"); | 416 | printk(KERN_ERR "RAMDISK: Couldn't allocate gzip window\n"); |
417 | kfree(inbuf); | 417 | kfree(inbuf); |
418 | return -1; | 418 | return -1; |
diff --git a/kernel/futex.c b/kernel/futex.c index d725676d84f3..e45a65e41686 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -293,7 +293,7 @@ EXPORT_SYMBOL_GPL(get_futex_key_refs); | |||
293 | */ | 293 | */ |
294 | void drop_futex_key_refs(union futex_key *key) | 294 | void drop_futex_key_refs(union futex_key *key) |
295 | { | 295 | { |
296 | if (key->both.ptr == 0) | 296 | if (!key->both.ptr) |
297 | return; | 297 | return; |
298 | switch (key->both.offset & (FUT_OFF_INODE|FUT_OFF_MMSHARED)) { | 298 | switch (key->both.offset & (FUT_OFF_INODE|FUT_OFF_MMSHARED)) { |
299 | case FUT_OFF_INODE: | 299 | case FUT_OFF_INODE: |
@@ -1046,7 +1046,7 @@ static int unqueue_me(struct futex_q *q) | |||
1046 | retry: | 1046 | retry: |
1047 | lock_ptr = q->lock_ptr; | 1047 | lock_ptr = q->lock_ptr; |
1048 | barrier(); | 1048 | barrier(); |
1049 | if (lock_ptr != 0) { | 1049 | if (lock_ptr != NULL) { |
1050 | spin_lock(lock_ptr); | 1050 | spin_lock(lock_ptr); |
1051 | /* | 1051 | /* |
1052 | * q->lock_ptr can change between reading it and | 1052 | * q->lock_ptr can change between reading it and |
diff --git a/kernel/kexec.c b/kernel/kexec.c index 7885269b0da2..e9f1b4ea504d 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c | |||
@@ -785,7 +785,7 @@ static int kimage_load_normal_segment(struct kimage *image, | |||
785 | size_t uchunk, mchunk; | 785 | size_t uchunk, mchunk; |
786 | 786 | ||
787 | page = kimage_alloc_page(image, GFP_HIGHUSER, maddr); | 787 | page = kimage_alloc_page(image, GFP_HIGHUSER, maddr); |
788 | if (page == 0) { | 788 | if (!page) { |
789 | result = -ENOMEM; | 789 | result = -ENOMEM; |
790 | goto out; | 790 | goto out; |
791 | } | 791 | } |
@@ -844,7 +844,7 @@ static int kimage_load_crash_segment(struct kimage *image, | |||
844 | size_t uchunk, mchunk; | 844 | size_t uchunk, mchunk; |
845 | 845 | ||
846 | page = pfn_to_page(maddr >> PAGE_SHIFT); | 846 | page = pfn_to_page(maddr >> PAGE_SHIFT); |
847 | if (page == 0) { | 847 | if (!page) { |
848 | result = -ENOMEM; | 848 | result = -ENOMEM; |
849 | goto out; | 849 | goto out; |
850 | } | 850 | } |
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index ae2959bb59cb..034617f8cdb2 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
@@ -1020,7 +1020,7 @@ static long region_chg(struct list_head *head, long f, long t) | |||
1020 | * size such that we can guarentee to record the reservation. */ | 1020 | * size such that we can guarentee to record the reservation. */ |
1021 | if (&rg->link == head || t < rg->from) { | 1021 | if (&rg->link == head || t < rg->from) { |
1022 | nrg = kmalloc(sizeof(*nrg), GFP_KERNEL); | 1022 | nrg = kmalloc(sizeof(*nrg), GFP_KERNEL); |
1023 | if (nrg == 0) | 1023 | if (!nrg) |
1024 | return -ENOMEM; | 1024 | return -ENOMEM; |
1025 | nrg->from = f; | 1025 | nrg->from = f; |
1026 | nrg->to = f; | 1026 | nrg->to = f; |
diff --git a/mm/mremap.c b/mm/mremap.c index 8ea5c2412c6e..08e3c7f2bd15 100644 --- a/mm/mremap.c +++ b/mm/mremap.c | |||
@@ -291,7 +291,7 @@ unsigned long do_mremap(unsigned long addr, | |||
291 | if ((addr <= new_addr) && (addr+old_len) > new_addr) | 291 | if ((addr <= new_addr) && (addr+old_len) > new_addr) |
292 | goto out; | 292 | goto out; |
293 | 293 | ||
294 | ret = security_file_mmap(0, 0, 0, 0, new_addr, 1); | 294 | ret = security_file_mmap(NULL, 0, 0, 0, new_addr, 1); |
295 | if (ret) | 295 | if (ret) |
296 | goto out; | 296 | goto out; |
297 | 297 | ||
@@ -399,7 +399,7 @@ unsigned long do_mremap(unsigned long addr, | |||
399 | goto out; | 399 | goto out; |
400 | } | 400 | } |
401 | 401 | ||
402 | ret = security_file_mmap(0, 0, 0, 0, new_addr, 1); | 402 | ret = security_file_mmap(NULL, 0, 0, 0, new_addr, 1); |
403 | if (ret) | 403 | if (ret) |
404 | goto out; | 404 | goto out; |
405 | } | 405 | } |
diff --git a/mm/vmscan.c b/mm/vmscan.c index e1471385d001..cb474cc99645 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1282,7 +1282,7 @@ out: | |||
1282 | */ | 1282 | */ |
1283 | if (priority < 0) | 1283 | if (priority < 0) |
1284 | priority = 0; | 1284 | priority = 0; |
1285 | for (i = 0; zones[i] != 0; i++) { | 1285 | for (i = 0; zones[i] != NULL; i++) { |
1286 | struct zone *zone = zones[i]; | 1286 | struct zone *zone = zones[i]; |
1287 | 1287 | ||
1288 | if (!cpuset_zone_allowed_hardwall(zone, GFP_KERNEL)) | 1288 | if (!cpuset_zone_allowed_hardwall(zone, GFP_KERNEL)) |
diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c index cb008d9f0a82..36a191e7004e 100644 --- a/security/selinux/xfrm.c +++ b/security/selinux/xfrm.c | |||
@@ -448,7 +448,7 @@ int selinux_xfrm_postroute_last(u32 isec_sid, struct sk_buff *skb, | |||
448 | if (dst) { | 448 | if (dst) { |
449 | struct dst_entry *dst_test; | 449 | struct dst_entry *dst_test; |
450 | 450 | ||
451 | for (dst_test = dst; dst_test != 0; | 451 | for (dst_test = dst; dst_test != NULL; |
452 | dst_test = dst_test->child) { | 452 | dst_test = dst_test->child) { |
453 | struct xfrm_state *x = dst_test->xfrm; | 453 | struct xfrm_state *x = dst_test->xfrm; |
454 | 454 | ||