[PATCH 0/2] backlight: pwm: fix oops on accessing removed legacy pwm device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The changeset fixes an oops, if pwm device was allocated by calling
legacy API and not deregistered appropriately on removal:

  % dmesg | grep -i pwm
  pwm-backlight backlight.19: unable to request PWM, trying legacy API
  % rmmod pwm_bl
  % cat /sys/kernel/debug/pwm
  Unable to handle kernel paging request at virtual address 7f0c18cc
  pgd = ace18000
  [7f0c18cc] *pgd=3c5eb811, *pte=00000000, *ppte=00000000
  Internal error: Oops: 7 [#1] PREEMPT SMP ARM
  ......

Vladimir Zapolskiy (2):
  backlight: pwm: don't call legacy pwm request for device defined in dt
  backlight: pwm: clean up pwm requested using legacy API

 drivers/video/backlight/pwm_bl.c |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]