Blame view

buildroot/buildroot-2016.08.1/package/powertop/0001-autotune-fix-use-after-close.patch 493 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  Patch pulled from https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/powertop&id=37469c47b885c50365f57044e4ad72e0e3512b91
  
  Fixes a use-after-close bug in create_all_devfreq_devices().
  
  Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  
  --- a/src/devices/devfreq.cpp
  +++ b/src/devices/devfreq.cpp
  @@ -247,6 +247,7 @@ void create_all_devfreq_devices(void)
  		fprintf(stderr, "Devfreq not enabled
  ");
  		is_enabled = false;
  		closedir(dir);
  +		dir = NULL;
  		return;
  	}