diff options
| author | Sachin Kamat <[email protected]> | 2012-09-25 15:27:13 +0530 |
|---|---|---|
| committer | Artem Bityutskiy <[email protected]> | 2012-11-15 15:37:46 +0200 |
| commit | ecbcbc7b75bb1b7596fca2d588d2f7539dc4e581 (patch) | |
| tree | 09bd4bbff8702d975a3e4d39a05fd870198a5eb5 /tools/perf/scripts/python/bin/netdev-times-record | |
| parent | 0aa87b7563f138149429f35727b975ec25a494a6 (diff) | |
mtd: ofpart: Fix incorrect NULL check in parse_ofoldpart_partitions()
The pointer returned by kzalloc should be tested for NULL
to avoid potential NULL pointer dereference later. Incorrect
pointer was being tested for NULL. Bug introduced by commit fbcf62a3
(mtd: physmap_of: move parse_obsolete_partitions to become separate
parser).
This patch fixes this bug.
Signed-off-by: Sachin Kamat <[email protected]>
Cc: [email protected] [3.2+]
Signed-off-by: Artem Bityutskiy <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/netdev-times-record')
0 files changed, 0 insertions, 0 deletions