mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	
				kzalloc() return should always be checked - notably in example code
where this may be seen as reference. On failure of allocation in
livepatch_fix1_dummy_alloc() respectively dummy_alloc() previous
allocation is freed (thanks to Petr Mladek <pmladek@suse.com> for
catching this) and NULL returned.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: 
		
	
					 | 
			||
|---|---|---|
| .. | ||
| livepatch-callbacks-busymod.c | ||
| livepatch-callbacks-demo.c | ||
| livepatch-callbacks-mod.c | ||
| livepatch-sample.c | ||
| livepatch-shadow-fix1.c | ||
| livepatch-shadow-fix2.c | ||
| livepatch-shadow-mod.c | ||
| Makefile | ||