[PATCH 0/2] cache: fix cache logic not go into invalid state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I faced failure of sadump phys_base calculation and found a bug in
cache.c causes it. Due to the bug, cache_alloc() returns NULL forever
throughout execution. The fix is the 2nd patch. During the
investigation I also found a lack of malloc() allocation failure
check. The fix is the 1st patch. Primary is the 2nd one.

I built this patch set on top of devel branch.

---

HATAYAMA Daisuke (2):
      cache: allocate buffers at initialization to detect malloc() failure
      cache: reuse entry in pending list


 cache.c        |   50 +++++++++++++++++++++++++++++++++-----------------
 cache.h        |    1 +
 makedumpfile.c |    3 +++
 3 files changed, 37 insertions(+), 17 deletions(-)

-- 

Thanks.
HATAYAMA, Daisuke



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux