[Drbd-dev] [CASE-23] please check potential error possibility.
Roland Kammerer
roland.kammerer at linbit.com
Wed Feb 24 10:56:18 CET 2016
On Wed, Feb 24, 2016 at 03:44:56PM +0900, 김재헌 wrote:
> Hi,
>
> Please check following codes whether potential error or not on version:
> 9.0.1-1.
>
> 1. drbd_pause_after/drbd_resume_next
>
> - You used disk_state without array index.
>
> #if 1
> if (other_device->disk_state[NOW] == D_DISKLESS) { // new
> #else
> if (other_device->disk_state == D_DISKLESS) { // orignal code
> #endif
>
>
> 2. drbd_adm_dump_peer_devices/drbd_adm_dump_devices
>
> - If you run the first "goto put_result;" statement, you should meet
> rcu_read_unlock() without rcu_read_lock().
> - Is it no problem?
Hi,
I think you are right in both cases, I prepared fixes, which are
currently under review...
Regards, rck
More information about the drbd-dev
mailing list