aboutsummaryrefslogtreecommitdiffstats
path: root/tools/blktap2/drivers/hashtable_utility.c
diff options
context:
space:
mode:
authorMatthew Daley <mattjd@gmail.com>2012-11-14 10:43:14 +0100
committerMatthew Daley <mattjd@gmail.com>2012-11-14 10:43:14 +0100
commitbe6892c0e4d88a9db6f255804f5a143c5b74b7f3 (patch)
treea4ad92ed06ed4441a2593b2455a5626df85b08d5 /tools/blktap2/drivers/hashtable_utility.c
parent209b2a8df2c3be46b2dfcad18f91281f365291b0 (diff)
downloadxen-be6892c0e4d88a9db6f255804f5a143c5b74b7f3.tar.gz
xen-be6892c0e4d88a9db6f255804f5a143c5b74b7f3.tar.bz2
xen-be6892c0e4d88a9db6f255804f5a143c5b74b7f3.zip
tmem: Prevent NULL dereference on error case
If the client / pool IDs given to tmemc_save_get_next_page are invalid, the calculation of pagesize will dereference NULL. Fix this by moving the calculation below the appropriate NULL check. Signed-off-by: Matthew Daley <mattjd@gmail.com> xen-unstable changeset: 26132:286ef4ced216 xen-unstable date: Mon Nov 12 08:34:57 UTC 2012
Diffstat (limited to 'tools/blktap2/drivers/hashtable_utility.c')
0 files changed, 0 insertions, 0 deletions