summaryrefslogtreecommitdiff
path: root/tprintf.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-03-16 13:43:16 +0100
committerDaniel Borkmann <dborkman@redhat.com>2013-03-16 13:43:16 +0100
commitc69b4960fa4f48fcc7bd320bc34e4fc8de613bdc (patch)
tree0416dff0bb17c4fdbbc789bbed7243f957e8a213 /tprintf.h
parent30e1aafbae487e63a1f1f294391bbdc993808c4b (diff)
geoip: reorder statements, so that file handles are closed first
Coverty detected, when we are in an error condition, we do not close file handles, but just return instead. Thus, reorder statements, so that file handles are closed for sure. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'tprintf.h')
0 files changed, 0 insertions, 0 deletions
1024, gsi_count: 1024. That's to say when irq_routes->nr == 1024, there are 1024 routing entries, but in the kernel code when routes->nr >= 1024, will just return -EINVAL; The nr is the number of the routing entries which is in of [1 ~ KVM_MAX_IRQ_ROUTES], not the index in [0 ~ KVM_MAX_IRQ_ROUTES - 1]. This patch fix the BUG above. Cc: stable@vger.kernel.org Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com> Signed-off-by: Wei Tang <tangwei@cmss.chinamobile.com> Signed-off-by: Zhang Zhuoyu <zhangzhuoyu@cmss.chinamobile.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat