Thread (5 messages) 5 messages, 2 authors, 2011-09-27

Re: [PATCH 2/2] net: Fix potential memory leak

flat view

From: Eric Dumazet <hidden>
Date: 2011-09-27 12:07:26

Le mardi 27 septembre 2011 à 17:58 +0800, Huajun Li a écrit :
To emulate memory allocation fail case, I added code to return
'-ENOMEM' from flow_cache_cpu_prepare(...) even if it could allocate
memory correctly, but did not find panic on my box, maybe the latest
code changed greatly than 2.6.37. :)
To panic the box, you need to leave a NULL pointer somewhere and
dereference it later, when code assumes it cant be NULL ;)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help