Skip to content
Commit 31279b14 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds
Browse files

aoe: fix use after free in aoedev_by_aoeaddr()



We should return NULL on failure instead of returning a freed pointer.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Cc: Ed Cashin <ecashin@coraid.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2b37c7d8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment