summaryrefslogtreecommitdiff
path: root/drivers/serial/sb1250-duart.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-08-12 11:58:27 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-08-12 15:31:39 +0400
commitf78ec6b2f32efad1fc6b2196e966dcec8122d689 (patch)
treebd00138782ab4b654db4714df0b852f206341921 /drivers/serial/sb1250-duart.c
parentb06cd21e2f0f75686f95afa5b71219b1408f5458 (diff)
downloadlinux-f78ec6b2f32efad1fc6b2196e966dcec8122d689.tar.xz
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 <error27@gmail.com> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/serial/sb1250-duart.c')
0 files changed, 0 insertions, 0 deletions