<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/bluetooth/cmtp/core.c, branch linux-4.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-08-30T08:26:41Z</updated>
<entry>
<title>Bluetooth: cmtp: fix possible might sleep error in cmtp_session</title>
<updated>2017-08-30T08:26:41Z</updated>
<author>
<name>Jeffy Chen</name>
</author>
<published>2017-06-27T09:34:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b741896229c17d9fa058ca005e81dd53717acc8a'/>
<id>urn:sha1:b741896229c17d9fa058ca005e81dd53717acc8a</id>
<content type='text'>
commit f06d977309d09253c744e54e75c5295ecc52b7b4 upstream.

It looks like cmtp_session has same pattern as the issue reported in
old rfcomm:

	while (1) {
		set_current_state(TASK_INTERRUPTIBLE);
		if (condition)
			break;
		// may call might_sleep here
		schedule();
	}
	__set_current_state(TASK_RUNNING);

Which fixed at:
	dfb2fae Bluetooth: Fix nested sleeps

So let's fix it at the same way, also follow the suggestion of:
https://lwn.net/Articles/628628/

Signed-off-by: Jeffy Chen &lt;jeffy.chen@rock-chips.com&gt;
Reviewed-by: Brian Norris &lt;briannorris@chromium.org&gt;
Reviewed-by: AL Yu-Chen Cho &lt;acho@suse.com&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Cc: Jiri Slaby &lt;jslaby@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Bluetooth: Delete an unnecessary check before the function call "kfree_skb"</title>
<updated>2015-11-19T16:50:32Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2015-11-14T21:00:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06fbb3d5c7ff366fe7ab7b4157bdb3096fca6d09'/>
<id>urn:sha1:06fbb3d5c7ff366fe7ab7b4157bdb3096fca6d09</id>
<content type='text'>
The kfree_skb() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
</entry>
<entry>
<title>Bluetooth: cmtp: Use BIT(x) instead of (1 &lt;&lt; x)</title>
<updated>2015-04-04T05:50:20Z</updated>
<author>
<name>Marcel Holtmann</name>
</author>
<published>2015-04-03T18:02:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b2ddeb11738464ce8f75c15384a3b8132cb80357'/>
<id>urn:sha1:b2ddeb11738464ce8f75c15384a3b8132cb80357</id>
<content type='text'>
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Johan Hedberg &lt;johan.hedberg@intel.com&gt;
</content>
</entry>
<entry>
<title>Bluetooth: Restrict CMTP flags to only valid ones</title>
<updated>2015-04-02T05:42:21Z</updated>
<author>
<name>Marcel Holtmann</name>
</author>
<published>2015-04-01T20:51:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8bf17a3619250944957c732e71659787528131c3'/>
<id>urn:sha1:8bf17a3619250944957c732e71659787528131c3</id>
<content type='text'>
The CMTP flags should be clearly restricted to valid ones. So this puts
extra checks in place to ensure this.

Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Johan Hedberg &lt;johan.hedberg@intel.com&gt;
</content>
</entry>
<entry>
<title>Bluetooth: cmtp: cmtp_add_connection() should verify that it's dealing with l2cap socket</title>
<updated>2014-12-19T12:48:21Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2014-12-19T06:20:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=96c26653ce65bf84f3212f8b00d4316c1efcbf4c'/>
<id>urn:sha1:96c26653ce65bf84f3212f8b00d4316c1efcbf4c</id>
<content type='text'>
... rather than relying on ciptool(8) never passing it anything else.  Give
it e.g. an AF_UNIX connected socket (from socketpair(2)) and it'll oops,
trying to evaluate &amp;l2cap_pi(sock-&gt;sk)-&gt;chan-&gt;dst...

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
</entry>
<entry>
<title>Bluetooth: Access CMTP session addresses through L2CAP channel</title>
<updated>2013-10-13T17:00:30Z</updated>
<author>
<name>Marcel Holtmann</name>
</author>
<published>2013-10-13T16:49:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=88f1fd27080013c8216bc6ed26e3c9a184a78588'/>
<id>urn:sha1:88f1fd27080013c8216bc6ed26e3c9a184a78588</id>
<content type='text'>
The L2CAP socket structure does not contain the address information
anymore. They need to be accessed through the L2CAP channel.

Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Johan Hedberg &lt;johan.hedberg@intel.com&gt;
</content>
</entry>
<entry>
<title>Bluetooth: Use %pMR in sprintf/seq_printf instead of batostr</title>
<updated>2012-09-27T21:10:15Z</updated>
<author>
<name>Andrei Emeltchenko</name>
</author>
<published>2012-09-25T09:49:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fcb73338ed531dcc00cb17ca76fe3e05f774e4e9'/>
<id>urn:sha1:fcb73338ed531dcc00cb17ca76fe3e05f774e4e9</id>
<content type='text'>
Instead of old unsafe batostr function use %pMR print specifier
for printing Bluetooth addresses in sprintf and seq_printf
statements.

Signed-off-by: Andrei Emeltchenko &lt;andrei.emeltchenko@intel.com&gt;
Acked-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Gustavo Padovan &lt;gustavo.padovan@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth</title>
<updated>2011-12-02T23:26:25Z</updated>
<author>
<name>Gustavo F. Padovan</name>
</author>
<published>2011-12-02T23:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c69b0ada634bca4111fcc332df5fad2447ec90f'/>
<id>urn:sha1:5c69b0ada634bca4111fcc332df5fad2447ec90f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bluetooth: cmtp: Fix module reference</title>
<updated>2011-11-21T16:28:45Z</updated>
<author>
<name>David Herrmann</name>
</author>
<published>2011-11-19T12:23:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=48b28b8db9a74cc5c43e76485dc397e22bea2984'/>
<id>urn:sha1:48b28b8db9a74cc5c43e76485dc397e22bea2984</id>
<content type='text'>
We cannot call module_put(THIS_MODULE) if this is our last reference. Otherwise,
this call may cleanup our module before it returns.

Gladly, the kthread API provides a simple wrapper for us. So lets use
module_put_and_exit() to avoid a race condition with the module cleanup code.

Signed-off-by: David Herrmann &lt;dh.herrmann@googlemail.com&gt;
Acked-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>Bluetooth: replace list_for_each with list_for_each_entry whenever possible</title>
<updated>2011-11-07T19:24:46Z</updated>
<author>
<name>Luiz Augusto von Dentz</name>
</author>
<published>2011-11-01T08:58:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8035ded466049ca2fe8c04564a0fa00f222abe3f'/>
<id>urn:sha1:8035ded466049ca2fe8c04564a0fa00f222abe3f</id>
<content type='text'>
When all items in the list have the same type there is no much of a point
to use list_for_each except if you want to use the list pointer itself.

Signed-off-by: Luiz Augusto von Dentz &lt;luiz.von.dentz@intel.com&gt;
Signed-off-by: Gustavo F. Padovan &lt;padovan@profusion.mobi&gt;
</content>
</entry>
</feed>
