OSDN Git Service

procmem: fix procmem crash issue
authorHong-Mei Li <a21834@motorola.com>
Mon, 1 Apr 2013 03:28:47 +0000 (11:28 +0800)
committerHong-Mei Li <a21834@motorola.com>
Mon, 1 Apr 2013 03:35:04 +0000 (11:35 +0800)
commitc4c464fc147fc812a38b1e104696ce4052197bf3
tree73abdebf6405ad538064d27ae93d1ffd35930701
parent26ebd81c1d73d7ce77e1c0cb5ac67c6d2ba4f004
procmem: fix procmem crash issue

For the case pm_map_pagemap return error(e.g, maps[i]->start==maps[i]->end==0),
the main loop continue without set mis[i] fields, and then mis[i]==0. So that
the corresponding mi item is 0 for this case.
Skip dumping this item to avoid crash.

Change-Id: I7e1bea1abdccfd7594b9d904938b3462dc182a76
Signed-off-by: Hong-Mei Li <a21834@motorola.com>
procmem/procmem.c