Patch to fix efivarfs underflow from Lingzhu Xiang (rhbz 888163)
This commit is contained in:
		
							parent
							
								
									14f894d108
								
							
						
					
					
						commit
						fd89f36b90
					
				
							
								
								
									
										24
									
								
								efivarfs-nlink-fix.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								efivarfs-nlink-fix.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,24 @@ | |||||||
|  | efivarfs_unlink() should drop the file's link count, not the directory's. | ||||||
|  | 
 | ||||||
|  | Tested-by: Lee, Chun-Yi <jlee@suse.com> | ||||||
|  | Signed-off-by: Lingzhu Xiang <lxiang@redhat.com> | ||||||
|  | ---
 | ||||||
|  |  drivers/firmware/efivars.c |    2 +- | ||||||
|  |  1 files changed, 1 insertions(+), 1 deletions(-) | ||||||
|  | 
 | ||||||
|  | diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c
 | ||||||
|  | index d6b8d2f..60f5324 100644
 | ||||||
|  | --- a/drivers/firmware/efivars.c
 | ||||||
|  | +++ b/drivers/firmware/efivars.c
 | ||||||
|  | @@ -995,7 +995,7 @@ static int efivarfs_unlink(struct inode *dir, struct dentry *dentry)
 | ||||||
|  |  		list_del(&var->list); | ||||||
|  |  		spin_unlock(&efivars->lock); | ||||||
|  |  		efivar_unregister(var); | ||||||
|  | -		drop_nlink(dir);
 | ||||||
|  | +		drop_nlink(dentry->d_inode);
 | ||||||
|  |  		dput(dentry); | ||||||
|  |  		return 0; | ||||||
|  |  	} | ||||||
|  | -- 
 | ||||||
|  | 1.7.7.6 | ||||||
|  | 
 | ||||||
| @ -687,6 +687,7 @@ Patch800: linux-2.6-crash-driver.patch | |||||||
| 
 | 
 | ||||||
| # secure boot | # secure boot | ||||||
| Patch1000: secure-boot-20130104.patch | Patch1000: secure-boot-20130104.patch | ||||||
|  | Patch1001: efivarfs-nlink-fix.patch | ||||||
| 
 | 
 | ||||||
| # virt + ksm patches | # virt + ksm patches | ||||||
| 
 | 
 | ||||||
| @ -1392,6 +1393,7 @@ ApplyPatch linux-2.6-e1000-ich9-montevina.patch | |||||||
| 
 | 
 | ||||||
| # secure boot | # secure boot | ||||||
| ApplyPatch secure-boot-20130104.patch | ApplyPatch secure-boot-20130104.patch | ||||||
|  | ApplyPatch efivarfs-nlink-fix.patch | ||||||
| 
 | 
 | ||||||
| # Assorted Virt Fixes | # Assorted Virt Fixes | ||||||
| 
 | 
 | ||||||
| @ -2308,6 +2310,9 @@ fi | |||||||
| #                 ||----w | | #                 ||----w | | ||||||
| #                 ||     || | #                 ||     || | ||||||
| %changelog | %changelog | ||||||
|  | * Mon Jan 07 2013 Josh Boyer <jwboyer@redhat.com> | ||||||
|  | - Patch to fix efivarfs underflow from Lingzhu Xiang (rhbz 888163) | ||||||
|  | 
 | ||||||
| * Sat Jan  5 2013 Peter Robinson <pbrobinson@fedoraproject.org> | * Sat Jan  5 2013 Peter Robinson <pbrobinson@fedoraproject.org> | ||||||
| - Initial update of ARM configs for 3.8 | - Initial update of ARM configs for 3.8 | ||||||
| - Enable DRM driver for tegra | - Enable DRM driver for tegra | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user