mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-11-01 09:13:37 +00:00 
			
		
		
		
	lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
lib/vsprintf.c: Fix bug omitting minus sign of numbers (module_param) Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com> Cc: Yi Yang <yi.y.yang@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									8ca3ed87db
								
							
						
					
					
						commit
						4f9d5f4a35
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -234,7 +234,7 @@ int strict_strto##type(const char *cp, unsigned int base, valtype *res)	\
 | 
			
		|||
	int ret;							\
 | 
			
		||||
	if (*cp == '-') {						\
 | 
			
		||||
		ret = strict_strtou##type(cp+1, base, res);		\
 | 
			
		||||
		if (ret != 0)						\
 | 
			
		||||
		if (!ret)						\
 | 
			
		||||
			*res = -(*res);					\
 | 
			
		||||
	} else								\
 | 
			
		||||
		ret = strict_strtou##type(cp, base, res);		\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue