]> err.no Git - linux-2.6/blobdiff - fs/gfs2/recovery.c
rtc: rtc_time_to_tm: use unsigned arithmetic
[linux-2.6] / fs / gfs2 / recovery.c
index b17d3b8b2321f66499a880ebc2405ca098afb5f4..2888e4b4b1c5ff546ab409d5090d0d979562925d 100644 (file)
@@ -68,7 +68,7 @@ int gfs2_revoke_add(struct gfs2_sbd *sdp, u64 blkno, unsigned int where)
                return 0;
        }
 
-       rr = kmalloc(sizeof(struct gfs2_revoke_replay), GFP_KERNEL);
+       rr = kmalloc(sizeof(struct gfs2_revoke_replay), GFP_NOFS);
        if (!rr)
                return -ENOMEM;
 
@@ -149,7 +149,7 @@ static int get_log_header(struct gfs2_jdesc *jd, unsigned int blk,
                          struct gfs2_log_header_host *head)
 {
        struct buffer_head *bh;
-       struct gfs2_log_header_host lh;
+       struct gfs2_log_header_host uninitialized_var(lh);
        const u32 nothing = 0;
        u32 hash;
        int error;