Re: [PATCH v2 1/3] Input: db9 - store object at correct index

2015-10-06 Thread Dmitry Torokhov
On Tue, Oct 06, 2015 at 11:08:59AM +0530, Sudip Mukherjee wrote: > On Mon, Oct 05, 2015 at 05:32:05PM -0700, Dmitry Torokhov wrote: > > On Sat, Oct 03, 2015 at 02:54:56PM +0530, Sudip Mukherjee wrote: > > > The variable i is used to check the port to attach to and we are > > > supposed to save the

Re: [PATCH v2 1/3] Input: db9 - store object at correct index

2015-10-06 Thread Dmitry Torokhov
On Tue, Oct 06, 2015 at 11:08:59AM +0530, Sudip Mukherjee wrote: > On Mon, Oct 05, 2015 at 05:32:05PM -0700, Dmitry Torokhov wrote: > > On Sat, Oct 03, 2015 at 02:54:56PM +0530, Sudip Mukherjee wrote: > > > The variable i is used to check the port to attach to and we are > > > supposed to save the

Re: [PATCH v2 1/3] Input: db9 - store object at correct index

2015-10-05 Thread Sudip Mukherjee
On Mon, Oct 05, 2015 at 05:32:05PM -0700, Dmitry Torokhov wrote: > On Sat, Oct 03, 2015 at 02:54:56PM +0530, Sudip Mukherjee wrote: > > The variable i is used to check the port to attach to and we are > > supposed to save the reference of struct db9 in the location given by > > db9_base[i]. But

Re: [PATCH v2 1/3] Input: db9 - store object at correct index

2015-10-05 Thread Dmitry Torokhov
On Sat, Oct 03, 2015 at 02:54:56PM +0530, Sudip Mukherjee wrote: > The variable i is used to check the port to attach to and we are > supposed to save the reference of struct db9 in the location given by > db9_base[i]. But after finding out the index, i is getting modified again > so we saved in a

Re: [PATCH v2 1/3] Input: db9 - store object at correct index

2015-10-05 Thread Sudip Mukherjee
On Mon, Oct 05, 2015 at 05:32:05PM -0700, Dmitry Torokhov wrote: > On Sat, Oct 03, 2015 at 02:54:56PM +0530, Sudip Mukherjee wrote: > > The variable i is used to check the port to attach to and we are > > supposed to save the reference of struct db9 in the location given by > > db9_base[i]. But

Re: [PATCH v2 1/3] Input: db9 - store object at correct index

2015-10-05 Thread Dmitry Torokhov
On Sat, Oct 03, 2015 at 02:54:56PM +0530, Sudip Mukherjee wrote: > The variable i is used to check the port to attach to and we are > supposed to save the reference of struct db9 in the location given by > db9_base[i]. But after finding out the index, i is getting modified again > so we saved in a

[PATCH v2 1/3] Input: db9 - store object at correct index

2015-10-03 Thread Sudip Mukherjee
The variable i is used to check the port to attach to and we are supposed to save the reference of struct db9 in the location given by db9_base[i]. But after finding out the index, i is getting modified again so we saved in a wrong index. While at it mark db9_base[i] as NULL after it is freed.

[PATCH v2 1/3] Input: db9 - store object at correct index

2015-10-03 Thread Sudip Mukherjee
The variable i is used to check the port to attach to and we are supposed to save the reference of struct db9 in the location given by db9_base[i]. But after finding out the index, i is getting modified again so we saved in a wrong index. While at it mark db9_base[i] as NULL after it is freed.