Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330025
| From | Alexander Shishkin <alexander.shishkin@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] drivers: stm: correct the index in master array release |
| Date | 2016-02-09 11:20 +0100 |
| Message-ID | <r0dyP-2DB-29@gated-at.bofh.it> (permalink) |
| References | <qVMnx-6eG-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Chunyan Zhang <zhang.chunyan@linaro.org> writes: > It would be broken if stm_data->sw_start isn't zero, because that > stp_master_free() get the 'master' with __stm_master()/stm_master(), > in which the masterID is the second input parameter minus > stm_data->sw_start. So freeing STM masters has to start from > stm_data->sw_start. No, it won't. stm_master_free() handles nonexistent masters correctly. It does make sense to shrink the loop in stm_unregister_device() to avoid going through the [0..sw_start) range, since stm_master() returns NULL for those, but not for the reasons given in this patch description. Regards, -- Alex
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] drivers: stm: correct the index in master array release Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-01-28 05:30 +0100
Re: [PATCH] drivers: stm: correct the index in master array release Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-02-09 11:20 +0100
Re: [PATCH] drivers: stm: correct the index in master array release Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-02-14 07:30 +0100
Re: [PATCH] drivers: stm: correct the index in master array release Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-02-15 11:40 +0100
csiph-web