diff options
| author | Dan Carpenter <[email protected]> | 2010-08-12 07:58:27 +0000 |
|---|---|---|
| committer | David Woodhouse <[email protected]> | 2010-08-12 11:31:39 +0000 |
| commit | f78ec6b2f32efad1fc6b2196e966dcec8122d689 (patch) | |
| tree | bd00138782ab4b654db4714df0b852f206341921 /fs/jbd/commit.c | |
| parent | mtd/m25p80: retlen is never NULL (diff) | |
| download | kernel-f78ec6b2f32efad1fc6b2196e966dcec8122d689.tar.gz kernel-f78ec6b2f32efad1fc6b2196e966dcec8122d689.zip | |
mtd/m25p80: fix test for end of loop
"plat_id" is always non-NULL here. There is a zero element on the end
of the m25p_ids[] array and if we hit the end of the loop then plat_id
points to that.
This would lead to a NULL pointer dereference later on in the function.
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Anton Vorontsov <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions
