1
0
Fork 0
alistair23-linux/drivers/staging/greybus
Rui Miguel Silva accad1ba7d greybus: power_supply: fix use after free of power supply
Individual power supply were being freed and checked using the wrong
pointers and at the wrong place, which would make several issues, like
used after free and so on.
Fix it by freeing all allocated memory after release individual power
supply.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Reported-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2016-01-11 19:18:14 -08:00
..
Documentation greybus: interface: Fetch and expose version of interface's firmware 2015-12-30 13:13:04 -08:00
tools greybus: loopback_test: null terminate the dict structure 2015-12-17 18:17:07 -08:00
.gitignore greybus: tools: Add tools directory to greybus repo and add loopback 2015-12-17 18:17:07 -08:00
LICENSE greybus: Initial commit 2014-08-11 15:29:23 +08:00
Makefile greybus: arche-platform: merge arche-apb-ctrl and arche-platform 2016-01-04 16:05:25 -08:00
README greybus: update README with info on how to build and contact me. 2014-08-11 15:44:51 +08:00
arche-apb-ctrl.c greybus: arche-apb-ctrl: deassert reset at the end of probe 2016-01-11 15:58:10 -08:00
arche-platform.c greybus: arche-platform: Add wake/detect support along with handshaking with AP 2016-01-11 15:58:10 -08:00
arche_platform.h greybus: arche-platform: merge arche-apb-ctrl and arche-platform 2016-01-04 16:05:25 -08:00
audio-codec.c greybus: Audio: Add skeleton code for GB virtual codec driver 2015-11-23 16:38:22 -08:00
audio.h greybus: Audio: Add skeleton code for GB virtual codec driver 2015-11-23 16:38:22 -08:00
bundle.c greybus: bundle: separate bundle creation and registration 2015-12-08 15:56:38 -05:00
bundle.h greybus: bundle: separate bundle creation and registration 2015-12-08 15:56:38 -05:00
camera.c greybus: camera: Add support for flags to stream_configure 2016-01-08 22:47:07 -08:00
connection.c greybus: connection: fix version-request error handling 2016-01-09 00:41:46 -08:00
connection.h greybus: hd: make svc-connection life time coincide with host-device 2015-12-08 15:31:14 -05:00
control.c greybus: interface: Fetch and expose version of interface's firmware 2015-12-30 13:13:04 -08:00
control.h greybus: interface: Fetch and expose version of interface's firmware 2015-12-30 13:13:04 -08:00
core.c greybus: core: fix greybus device matching 2016-01-09 00:41:46 -08:00
debugfs.c greybus: tag core init and exit functions 2015-06-10 10:38:23 -07:00
devices greybus: devices: endpoint description of device 2014-09-13 17:31:27 -07:00
es2.c greybus: es2: clean up csi-config request 2015-12-22 12:59:02 -08:00
es2.h greybus: es2: Add support for CSI transmitter configuration 2015-12-21 16:35:27 -08:00
firmware.c greybus: firmware/bootrom: debug output from bootrom protocol 2016-01-09 00:44:20 -08:00
firmware.h greybus: Add firmware protocol driver 2015-08-11 22:12:59 -07:00
gpbridge.c greybus: hid: hid should not be part of the bridged-phy driver. 2015-11-05 18:00:29 -08:00
gpio.c greybus: gpio: use the bundle struct device instead of the connector 2015-10-15 09:19:15 -07:00
greybus.h greybus: core: add drvdata accessors 2016-01-09 00:41:46 -08:00
greybus_id.h greybus: fix vendor and product matching 2015-11-21 17:15:35 -08:00
greybus_manifest.h greybus: Add camera protocol definition 2015-12-14 18:12:30 -08:00
greybus_protocols.h greybus: camera: Add support for flags to stream_configure 2016-01-08 22:47:07 -08:00
greybus_trace.h greybus: use decimal notation for interfaces, bundles and cports 2015-12-08 15:31:14 -05:00
hd.c greybus: svc: create svc along with host device 2015-12-08 15:31:14 -05:00
hd.h greybus: svc: create svc along with host device 2015-12-08 15:31:14 -05:00
hid.c greybus: don't use %h and %hh for printing short and char variables 2015-12-04 16:23:36 -08:00
i2c.c greybus: i2c: use the bundle struct device instead of the connector 2015-10-15 09:19:15 -07:00
interface.c greybus: interface: Fetch and expose version of interface's firmware 2015-12-30 13:13:04 -08:00
interface.h greybus: interface: Fetch and expose version of interface's firmware 2015-12-30 13:13:04 -08:00
kernel_ver.h greybus: power_supply: rework and operation changes 2015-11-12 16:12:55 -08:00
light.c greybus: lights: default value for v4l2 flash controls 2015-12-03 15:33:34 -08:00
loopback.c greybus: loopback: Add asynchronous backoff 2015-12-11 16:18:40 -08:00
manifest.c greybus: interface: separate manifest parsing from bundle registration 2015-12-08 15:56:38 -05:00
manifest.h greybus: manifest: Use interface descriptor instead of module descriptor to get information 2015-04-06 12:05:58 +02:00
operation.c greybus: don't use %h and %hh for printing short and char variables 2015-12-04 16:23:36 -08:00
operation.h greybus: hd: rename host-device structure 2015-11-04 20:25:57 -08:00
power_supply.c greybus: power_supply: fix use after free of power supply 2016-01-11 19:18:14 -08:00
protocol.c greybus: bundle: kill gb_bundle_bind_protocols 2015-12-08 15:31:14 -05:00
protocol.h greybus: connection: unconditionally enable connections 2015-11-25 15:39:16 -08:00
pwm.c greybus: pwm: use the bundle struct device instead of the connector 2015-10-15 09:19:15 -07:00
raw.c greybus: raw: use the bundle struct device instead of the connector 2015-10-15 09:19:15 -07:00
sdio.c greybus: Prefix hexadecimal values with 0x while printing them 2015-12-04 16:23:36 -08:00
spi.c greybus: spi: fix and cleanup spi devices handling 2015-12-15 14:32:12 -08:00
svc.c greybus: svc: Replace link config hack with standard operation 2016-01-08 22:14:08 -08:00
svc.h greybus: svc: Replace link config hack with standard operation 2016-01-08 22:14:08 -08:00
uart.c greybus: Prefix hexadecimal values with 0x while printing them 2015-12-04 16:23:36 -08:00
usb.c greybus: usb: use the bundle struct device instead of the connector 2015-10-15 09:19:15 -07:00
vibrator.c greybus: vibrator: use the bundle struct device instead of the connector 2015-10-15 09:19:15 -07:00

README

Greybus kernel code

To build against the running kernel (odds are you don't want this):
	make

To build against a specific kernel source tree (odds are you want this):
	KERNELDIR=/home/some/random/place make

Any questions / concerns about this code base, please email:
	Greg Kroah-Hartman <greg@kroah.com>