Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2

* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2:
ocfs2_connection_find() returns pointer to bad structure
ocfs2: char is not always signed
Ocfs2: Stop tracking a negative dentry after dentry_iput().
ocfs2: fix memory leak
fs/ocfs2/dlm: Use GFP_ATOMIC under spin_lock

+15 -10
+10 -4
fs/ocfs2/cluster/heartbeat.c
··· 1964 1964 if (reg == NULL) 1965 1965 return ERR_PTR(-ENOMEM); 1966 1966 1967 - if (strlen(name) > O2HB_MAX_REGION_NAME_LEN) 1968 - return ERR_PTR(-ENAMETOOLONG); 1967 + if (strlen(name) > O2HB_MAX_REGION_NAME_LEN) { 1968 + ret = -ENAMETOOLONG; 1969 + goto free; 1970 + } 1969 1971 1970 1972 spin_lock(&o2hb_live_lock); 1971 1973 reg->hr_region_num = 0; ··· 1976 1974 O2NM_MAX_REGIONS); 1977 1975 if (reg->hr_region_num >= O2NM_MAX_REGIONS) { 1978 1976 spin_unlock(&o2hb_live_lock); 1979 - return ERR_PTR(-EFBIG); 1977 + ret = -EFBIG; 1978 + goto free; 1980 1979 } 1981 1980 set_bit(reg->hr_region_num, o2hb_region_bitmap); 1982 1981 } ··· 1989 1986 ret = o2hb_debug_region_init(reg, o2hb_debug_dir); 1990 1987 if (ret) { 1991 1988 config_item_put(&reg->hr_item); 1992 - return ERR_PTR(ret); 1989 + goto free; 1993 1990 } 1994 1991 1995 1992 return &reg->hr_item; 1993 + free: 1994 + kfree(reg); 1995 + return ERR_PTR(ret); 1996 1996 } 1997 1997 1998 1998 static void o2hb_heartbeat_group_drop_item(struct config_group *group,
-1
fs/ocfs2/dcache.c
··· 476 476 477 477 out: 478 478 iput(inode); 479 - ocfs2_dentry_attach_gen(dentry); 480 479 } 481 480 482 481 /*
+1 -1
fs/ocfs2/dlm/dlmdomain.c
··· 959 959 r += O2HB_MAX_REGION_NAME_LEN; 960 960 } 961 961 962 - local = kmalloc(sizeof(qr->qr_regions), GFP_KERNEL); 962 + local = kmalloc(sizeof(qr->qr_regions), GFP_ATOMIC); 963 963 if (!local) { 964 964 status = -ENOMEM; 965 965 goto bail;
+3 -3
fs/ocfs2/ocfs2.h
··· 159 159 char l_name[OCFS2_LOCK_ID_MAX_LEN]; 160 160 unsigned int l_ro_holders; 161 161 unsigned int l_ex_holders; 162 - char l_level; 163 - char l_requested; 164 - char l_blocking; 162 + signed char l_level; 163 + signed char l_requested; 164 + signed char l_blocking; 165 165 166 166 /* Data packed - type enum ocfs2_lock_type */ 167 167 unsigned char l_type;
+1 -1
fs/ocfs2/stack_user.c
··· 190 190 return c; 191 191 } 192 192 193 - return c; 193 + return NULL; 194 194 } 195 195 196 196 /*