[haiku-commits] Re: haiku: hrev46775 - in src/add-ons/kernel/drivers/graphics: radeon_hd intel_extreme vesa

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 28 Jan 2014 11:44:37 +0100 (CET)

> On January 27, 2014 at 10:15 PM kallisti5@xxxxxxxxxxx wrote:
> diff --git a/src/add-ons/kernel/drivers/graphics/intel_extreme/device.cpp
> b/src/add-ons/kernel/drivers/graphics/intel_extreme/device.cpp
> index 0b981f1..df8872b 100644
> --- a/src/add-ons/kernel/drivers/graphics/intel_extreme/device.cpp
> +++ b/src/add-ons/kernel/drivers/graphics/intel_extreme/device.cpp
> @@ -138,8 +138,11 @@ device_open(const char* name, uint32 /*flags*/, void**
> _cookie)
> 
>       mutex_unlock(&gLock);
> 
> -     if (info->init_status == B_OK)
> +     if (info->init_status == B_OK) {
> +             info->open_count++;
>               *_cookie = info;
> +     } else
> +        ERROR("%s: initilization failed!\n", __func__);

The above must be done with the gLock held -- as you did in the other versions
of this bug fix :-)

Bye,
   Axel.

Other related posts: