<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-op-linux/drivers/input/misc/da9052_onkey.c, branch v3.7</title>
<subtitle>Talos™ II Linux sources for OpenPOWER</subtitle>
<id>https://git.raptorcs.com/git/talos-op-linux/atom?h=v3.7</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-op-linux/atom?h=v3.7'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/'/>
<updated>2012-04-12T05:15:04+00:00</updated>
<entry>
<title>Input: da9052 - fix memory leak in da9052_onkey_probe()</title>
<updated>2012-04-12T05:15:04+00:00</updated>
<author>
<name>Jesper Juhl</name>
<email>jj@chaosbits.net</email>
</author>
<published>2012-04-12T03:55:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=0e3d0f3d960bf5b895adcf9ffc79d2077f1411d5'/>
<id>urn:sha1:0e3d0f3d960bf5b895adcf9ffc79d2077f1411d5</id>
<content type='text'>
If, in drivers/input/misc/da9052_onkey.c::da9052_onkey_probe(), the
call to either kzalloc() or input_allocate_device() fails then we will
return -ENOMEM from the function without freeing the other allocation
that may have succeeded, thus we leak either the memory allocated for
'onkey' or the memory allocated for 'input_dev' if one succeeds and
the other fails.
Fix that by jumping to the 'err_free_mem' label at the end of the
function that properly cleans up rather than returning directly.

Signed-off-by: Jesper Juhl &lt;jj@chaosbits.net&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Input: add support for OnKey module for DA9052/53 PMIC</title>
<updated>2012-03-04T16:45:14+00:00</updated>
<author>
<name>Ashish Jangam</name>
<email>ashish.jangam@kpitcummins.com</email>
</author>
<published>2012-03-04T16:40:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=f0c5f65bc5729e94c62953eae0712b392f09bec1'/>
<id>urn:sha1:f0c5f65bc5729e94c62953eae0712b392f09bec1</id>
<content type='text'>
On-key Driver for Dialog Semiconductor DA9052/53 PMICs.

Signed-off-by: David Dajun Chen &lt;dchen@diasemi.com&gt;
Signed-off-by: Ashish Jangam &lt;ashish.jangam@kpitcummins.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
</feed>
