Re: [ovs-dev] [PATCH] ovn-controller: Fix possible null pointer dereference.

2016-09-20 Thread Justin Pettit

> On Sep 20, 2016, at 10:00 AM, Ben Pfaff  wrote:
> 
> On Mon, Sep 19, 2016 at 06:01:15PM -0700, Justin Pettit wrote:
>> The code dereferences "chassis", which could be null if chassis_run()
>> returns null.  "chassis" will always be null if "chassis_id" is null, so
>> checking "chassis" is sufficient to check both.
>> 
>> Found by inspection.
>> 
>> Signed-off-by: Justin Pettit 
> 
> Thanks.
> 
> Acked-by: Ben Pfaff 

Thanks.  I pushed it to master and branch-2.6.

--Justin


___
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev


Re: [ovs-dev] [PATCH] ovn-controller: Fix possible null pointer dereference.

2016-09-20 Thread Ben Pfaff
On Mon, Sep 19, 2016 at 06:01:15PM -0700, Justin Pettit wrote:
> The code dereferences "chassis", which could be null if chassis_run()
> returns null.  "chassis" will always be null if "chassis_id" is null, so
> checking "chassis" is sufficient to check both.
> 
> Found by inspection.
> 
> Signed-off-by: Justin Pettit 

Thanks.

Acked-by: Ben Pfaff 
___
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev


[ovs-dev] [PATCH] ovn-controller: Fix possible null pointer dereference.

2016-09-19 Thread Justin Pettit
The code dereferences "chassis", which could be null if chassis_run()
returns null.  "chassis" will always be null if "chassis_id" is null, so
checking "chassis" is sufficient to check both.

Found by inspection.

Signed-off-by: Justin Pettit 
---
 ovn/controller/ovn-controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ovn/controller/ovn-controller.c b/ovn/controller/ovn-controller.c
index 5f2f90a..49821f7 100644
--- a/ovn/controller/ovn-controller.c
+++ b/ovn/controller/ovn-controller.c
@@ -427,7 +427,7 @@ main(int argc, char *argv[])
 &all_lports);
 }
 
-if (br_int && chassis_id) {
+if (br_int && chassis) {
 patch_run(&ctx, br_int, chassis_id, &local_datapaths,
   &patched_datapaths);
 
-- 
1.9.1

___
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev