<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging, branch v3.18</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v3.18</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.18'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2014-11-27T16:55:01Z</updated>
<entry>
<title>staging: r8188eu: Add new device ID for DLink GO-USB-N150</title>
<updated>2014-11-27T16:55:01Z</updated>
<author>
<name>Larry Finger</name>
<email>Larry.Finger@lwfinger.net</email>
</author>
<published>2014-11-27T16:10:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6d4556fc0309608f760f1d329df56d77fdd0c31a'/>
<id>urn:sha1:6d4556fc0309608f760f1d329df56d77fdd0c31a</id>
<content type='text'>
The DLink GO-USB-N150 with revision B1 uses this driver.

Signed-off-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: r8188eu: Fix scheduling while atomic error introduced in commit fadbe0cd</title>
<updated>2014-11-26T22:03:48Z</updated>
<author>
<name>Larry Finger</name>
<email>Larry.Finger@lwfinger.net</email>
</author>
<published>2014-11-12T16:07:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=33dc85c3c667209c930b2dac5ccbc2a365e06b7a'/>
<id>urn:sha1:33dc85c3c667209c930b2dac5ccbc2a365e06b7a</id>
<content type='text'>
In commit fadbe0cd5292851608e2e01b91d9295fa287b9fe entitled "staging:
rtl8188eu:Remove rtw_zmalloc(), wrapper for kzalloc()", the author failed
to note that the original code in the wrapper tested whether the caller
could sleep, and set the flags argument to kzalloc() appropriately.
After the patch, GFP_KERNEL is used unconditionally. Unfortunately, several
of the routines may be entered from an interrupt routine and generate
a BUG splat for every such call. Routine rtw_sitesurvey_cmd() is used in the
example below:

BUG: sleeping function called from invalid context at mm/slub.c:1240
in_atomic(): 1, irqs_disabled(): 0, pid: 756, name: wpa_supplicant
INFO: lockdep is turned off.
CPU: 2 PID: 756 Comm: wpa_supplicant Tainted: G        WC O   3.18.0-rc4+ #34
Hardware name: TOSHIBA TECRA A50-A/TECRA A50-A, BIOS Version 4.20   04/17/2014
ffffc90005557000 ffff880216fafaa8 ffffffff816b0bbf 0000000000000000
ffff8800c3b58000 ffff880216fafac8 ffffffff8107af77 0000000000000001
0000000000000010 ffff880216fafb18 ffffffff811b06ce 0000000000000000
Call Trace:
 [&lt;ffffffff816b0bbf&gt;] dump_stack+0x4e/0x71
 [&lt;ffffffff8107af77&gt;] __might_sleep+0xf7/0x120
 [&lt;ffffffff811b06ce&gt;] kmem_cache_alloc_trace+0x4e/0x1f0
 [&lt;ffffffffa0888226&gt;] ? rtw_sitesurvey_cmd+0x56/0x2a0 [r8188eu]
 [&lt;ffffffffa0888226&gt;] rtw_sitesurvey_cmd+0x56/0x2a0 [r8188eu]
 [&lt;ffffffffa088f00d&gt;] rtw_do_join+0x22d/0x370 [r8188eu]
 [&lt;ffffffffa088f6e8&gt;] rtw_set_802_11_ssid+0x218/0x3d0 [r8188eu]
 [&lt;ffffffffa08c3ca5&gt;] rtw_wx_set_essid+0x1e5/0x410 [r8188eu]
 [&lt;ffffffffa08c3ac0&gt;] ? rtw_wx_get_rate+0x50/0x50 [r8188eu]
 [&lt;ffffffff816938f1&gt;] ioctl_standard_iw_point+0x151/0x3f0
 [&lt;ffffffff81693d52&gt;] ioctl_standard_call+0xb2/0xe0
 [&lt;ffffffff81597df7&gt;] ? rtnl_lock+0x17/0x20
 [&lt;ffffffff816945a0&gt;] ? iw_handler_get_private+0x70/0x70
 [&lt;ffffffff81693ca0&gt;] ? call_commit_handler+0x40/0x40
 [&lt;ffffffff81693256&gt;] wireless_process_ioctl+0x176/0x1c0
 [&lt;ffffffff81693e79&gt;] wext_handle_ioctl+0x69/0xc0
 [&lt;ffffffff8159fe79&gt;] dev_ioctl+0x309/0x5e0
 [&lt;ffffffff810be9c7&gt;] ? call_rcu+0x17/0x20
 [&lt;ffffffff8156a472&gt;] sock_ioctl+0x142/0x2e0
 [&lt;ffffffff811e0c70&gt;] do_vfs_ioctl+0x300/0x520
 [&lt;ffffffff81101514&gt;] ? __audit_syscall_entry+0xb4/0x110
 [&lt;ffffffff81101514&gt;] ? __audit_syscall_entry+0xb4/0x110
 [&lt;ffffffff810102bc&gt;] ? do_audit_syscall_entry+0x6c/0x70
 [&lt;ffffffff811e0f11&gt;] SyS_ioctl+0x81/0xa0
 [&lt;ffffffff816ba1d2&gt;] system_call_fastpath+0x12/0x17

Additional routines that generate this BUG are rtw_joinbss_cmd(),
rtw_dynamic_chk_wk_cmd(), rtw_lps_ctrl_wk_cmd(), rtw_rpt_timer_cfg_cmd(),
rtw_ps_cmd(), report_survey_event(), report_join_res(), survey_timer_hdl(),
and rtw_check_bcn_info().

Signed-off-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Cc: navin patidar &lt;navin.patidar@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'iio-fixes-for-3.18b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus</title>
<updated>2014-11-05T19:30:45Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2014-11-05T19:30:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bce20b2396626301c65e08306364bce9a7505ae5'/>
<id>urn:sha1:bce20b2396626301c65e08306364bce9a7505ae5</id>
<content type='text'>
Jonathan writes:

Second round of IIO fixes for the 3.18 cycle.

* tsl4531 - fix a compile error when CONFIG_PM_OPS not set.
* kxcjk-1013 - event spec direction was invalid - leading to 'interesting'
  attrribute names.
* as3935 - sizeof(st) used instead of sizeof(*st) leading to allocation of
  space for a pointer rather than the structure desired.
* ade7758 - Another null pointer deref fix due to different channels
  being provided to the the buffer register than used for the sysfs
  side of things.
* ade7758 - Check there is a channel enabled in preenable for the buffer
  before doing anything.
* ade7758 - Drop a stray raw from the channel name that leads to _raw_raw
  postfix.
</content>
</entry>
<entry>
<title>staging:iio:ade7758: Remove "raw" from channel name</title>
<updated>2014-11-05T18:33:48Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-11-04T17:03:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b598aacc29331e7e638cd509108600e916c6331b'/>
<id>urn:sha1:b598aacc29331e7e638cd509108600e916c6331b</id>
<content type='text'>
"raw" is a property of a channel, but should not be part of the name of
channel.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>staging:iio:ade7758: Fix check if channels are enabled in prenable</title>
<updated>2014-11-05T18:33:47Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-11-04T17:03:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=79fa64eb2ee8ccb4bcad7f54caa2699730b10b22'/>
<id>urn:sha1:79fa64eb2ee8ccb4bcad7f54caa2699730b10b22</id>
<content type='text'>
We should check if a channel is enabled, not if no channels are enabled.

Fixes: 550268ca1111 ("staging:iio: scrap scan_count and ensure all drivers use active_scan_mask")
Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>staging:iio:ade7758: Fix NULL pointer deref when enabling buffer</title>
<updated>2014-11-05T18:33:47Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-11-04T17:03:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e10554738cab4224e097c2f9d975ea781a4fcde4'/>
<id>urn:sha1:e10554738cab4224e097c2f9d975ea781a4fcde4</id>
<content type='text'>
In older versions of the IIO framework it was possible to pass a completely
different set of channels to iio_buffer_register() as the one that is
assigned to the IIO device. Commit 959d2952d124 ("staging:iio: make
iio_sw_buffer_preenable much more general.") introduced a restriction that
requires that the set of channels that is passed to iio_buffer_register() is
a subset of the channels assigned to the IIO device as the IIO core will use
the list of channels that is assigned to the device to lookup a channel by
scan index in iio_compute_scan_bytes(). If it can not find the channel the
function will crash. This patch fixes the issue by making sure that the same
set of channels is assigned to the IIO device and passed to
iio_buffer_register().

Note that we need to remove the IIO_CHAN_INFO_RAW and IIO_CHAN_INFO_SCALE
info attributes from the channels since we don't actually want those to be
registered.

Fixes the following crash:
	Unable to handle kernel NULL pointer dereference at virtual address 00000016
	pgd = d2094000
	[00000016] *pgd=16e39831, *pte=00000000, *ppte=00000000
	Internal error: Oops: 17 [#1] PREEMPT SMP ARM
	Modules linked in:
	CPU: 1 PID: 1695 Comm: bash Not tainted 3.17.0-06329-g29461ee #9686
	task: d7768040 ti: d5bd4000 task.ti: d5bd4000
	PC is at iio_compute_scan_bytes+0x38/0xc0
	LR is at iio_compute_scan_bytes+0x34/0xc0
	pc : [&lt;c0316de8&gt;]    lr : [&lt;c0316de4&gt;]    psr: 60070013
	sp : d5bd5ec0  ip : 00000000  fp : 00000000
	r10: d769f934  r9 : 00000000  r8 : 00000001
	r7 : 00000000  r6 : c8fc6240  r5 : d769f800  r4 : 00000000
	r3 : d769f800  r2 : 00000000  r1 : ffffffff  r0 : 00000000
	Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
	Control: 18c5387d  Table: 1209404a  DAC: 00000015
	Process bash (pid: 1695, stack limit = 0xd5bd4240)
	Stack: (0xd5bd5ec0 to 0xd5bd6000)
	5ec0: d769f800 d7435640 c8fc6240 d769f984 00000000 c03175a4 d7435690 d7435640
	5ee0: d769f990 00000002 00000000 d769f800 d5bd4000 00000000 000b43a8 c03177f4
	5f00: d769f810 0162b8c8 00000002 c8fc7e00 d77f1d08 d77f1da8 c8fc7e00 c01faf1c
	5f20: 00000002 c010694c c010690c d5bd5f88 00000002 c8fc6840 c8fc684c c0105e08
	5f40: 00000000 00000000 d20d1580 00000002 000af408 d5bd5f88 c000de84 c00b76d4
	5f60: d20d1580 000af408 00000002 d20d1580 d20d1580 00000002 000af408 c000de84
	5f80: 00000000 c00b7a44 00000000 00000000 00000002 b6ebea78 00000002 000af408
	5fa0: 00000004 c000dd00 b6ebea78 00000002 00000001 000af408 00000002 00000000
	5fc0: b6ebea78 00000002 000af408 00000004 bee96a4c 000a6094 00000000 000b43a8
	5fe0: 00000000 bee969cc b6e2eb77 b6e6525c 40070010 00000001 00000000 00000000
	[&lt;c0316de8&gt;] (iio_compute_scan_bytes) from [&lt;c03175a4&gt;] (__iio_update_buffers+0x248/0x438)
	[&lt;c03175a4&gt;] (__iio_update_buffers) from [&lt;c03177f4&gt;] (iio_buffer_store_enable+0x60/0x7c)
	[&lt;c03177f4&gt;] (iio_buffer_store_enable) from [&lt;c01faf1c&gt;] (dev_attr_store+0x18/0x24)
	[&lt;c01faf1c&gt;] (dev_attr_store) from [&lt;c010694c&gt;] (sysfs_kf_write+0x40/0x4c)
	[&lt;c010694c&gt;] (sysfs_kf_write) from [&lt;c0105e08&gt;] (kernfs_fop_write+0x110/0x154)
	[&lt;c0105e08&gt;] (kernfs_fop_write) from [&lt;c00b76d4&gt;] (vfs_write+0xbc/0x170)
	[&lt;c00b76d4&gt;] (vfs_write) from [&lt;c00b7a44&gt;] (SyS_write+0x40/0x78)
	[&lt;c00b7a44&gt;] (SyS_write) from [&lt;c000dd00&gt;] (ret_fast_syscall+0x0/0x30)

Fixes: 959d2952d124 ("staging:iio: make iio_sw_buffer_preenable much more general.")
Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: adc: mxs-lradc: Disable the clock on probe failure</title>
<updated>2014-11-05T18:33:44Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2014-10-04T11:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4748119f1889b4ce96c84831ad0581598081b46f'/>
<id>urn:sha1:4748119f1889b4ce96c84831ad0581598081b46f</id>
<content type='text'>
We should disable lradc-&gt;clk in the case of errors in the probe function.

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Reviewed-by: Marek Vasut &lt;marex@denx.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Cc: &lt;Stable@vger.kernel.org&gt;
</content>
</entry>
<entry>
<title>staging:iio:ad5933: Drop "raw" from channel names</title>
<updated>2014-11-05T18:33:42Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-09-25T14:27:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=97fb3033128958457f77456dc677a64bce8d33ae'/>
<id>urn:sha1:97fb3033128958457f77456dc677a64bce8d33ae</id>
<content type='text'>
"raw" is the name of a channel property, but should not be part of the
channel name itself.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Cc: &lt;Stable@vger.kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>staging:iio:ad5933: Fix NULL pointer deref when enabling buffer</title>
<updated>2014-11-05T18:33:41Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2014-09-25T14:27:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4a53d3afa00b0b74b0e49b147902a41e55b2e715'/>
<id>urn:sha1:4a53d3afa00b0b74b0e49b147902a41e55b2e715</id>
<content type='text'>
In older versions of the IIO framework it was possible to pass a
completely different set of channels to iio_buffer_register() as the one
that is assigned to the IIO device. Commit 959d2952d124 ("staging:iio: make
iio_sw_buffer_preenable much more general.") introduced a restriction that
requires that the set of channels that is passed to iio_buffer_register() is
a subset of the channels assigned to the IIO device as the IIO core will use
the list of channels that is assigned to the device to lookup a channel by
scan index in iio_compute_scan_bytes(). If it can not find the channel the
function will crash. This patch fixes the issue by making sure that the same
set of channels is assigned to the IIO device and passed to
iio_buffer_register().

Fixes the follow NULL pointer derefernce kernel crash:
	Unable to handle kernel NULL pointer dereference at virtual address 00000016
	pgd = d53d0000
	[00000016] *pgd=1534e831, *pte=00000000, *ppte=00000000
	Internal error: Oops: 17 [#1] PREEMPT SMP ARM
	Modules linked in:
	CPU: 1 PID: 1626 Comm: bash Not tainted 3.15.0-19969-g2a180eb-dirty #9545
	task: d6c124c0 ti: d539a000 task.ti: d539a000
	PC is at iio_compute_scan_bytes+0x34/0xa8
	LR is at iio_compute_scan_bytes+0x34/0xa8
	pc : [&lt;c03052e4&gt;]    lr : [&lt;c03052e4&gt;]    psr: 60070013
	sp : d539beb8  ip : 00000001  fp : 00000000
	r10: 00000002  r9 : 00000000  r8 : 00000001
	r7 : 00000000  r6 : d6dc8800  r5 : d7571000  r4 : 00000002
	r3 : d7571000  r2 : 00000044  r1 : 00000001  r0 : 00000000
	Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
	Control: 18c5387d  Table: 153d004a  DAC: 00000015
	Process bash (pid: 1626, stack limit = 0xd539a240)
	Stack: (0xd539beb8 to 0xd539c000)
	bea0:                                                       c02fc0e4 d7571000
	bec0: d76c1640 d6dc8800 d757117c 00000000 d757112c c0305b04 d76c1690 d76c1640
	bee0: d7571188 00000002 00000000 d7571000 d539a000 00000000 000dd1c8 c0305d54
	bf00: d7571010 0160b868 00000002 c69d3900 d7573278 d7573308 c69d3900 c01ece90
	bf20: 00000002 c0103fac c0103f6c d539bf88 00000002 c69d3b00 c69d3b0c c0103468
	bf40: 00000000 00000000 d7694a00 00000002 000af408 d539bf88 c000dd84 c00b2f94
	bf60: d7694a00 000af408 00000002 d7694a00 d7694a00 00000002 000af408 c000dd84
	bf80: 00000000 c00b32d0 00000000 00000000 00000002 b6f1aa78 00000002 000af408
	bfa0: 00000004 c000dc00 b6f1aa78 00000002 00000001 000af408 00000002 00000000
	bfc0: b6f1aa78 00000002 000af408 00000004 be806a4c 000a6094 00000000 000dd1c8
	bfe0: 00000000 be8069cc b6e8ab77 b6ec125c 40070010 00000001 22940489 154a5007
	[&lt;c03052e4&gt;] (iio_compute_scan_bytes) from [&lt;c0305b04&gt;] (__iio_update_buffers+0x248/0x438)
	[&lt;c0305b04&gt;] (__iio_update_buffers) from [&lt;c0305d54&gt;] (iio_buffer_store_enable+0x60/0x7c)
	[&lt;c0305d54&gt;] (iio_buffer_store_enable) from [&lt;c01ece90&gt;] (dev_attr_store+0x18/0x24)
	[&lt;c01ece90&gt;] (dev_attr_store) from [&lt;c0103fac&gt;] (sysfs_kf_write+0x40/0x4c)
	[&lt;c0103fac&gt;] (sysfs_kf_write) from [&lt;c0103468&gt;] (kernfs_fop_write+0x110/0x154)
	[&lt;c0103468&gt;] (kernfs_fop_write) from [&lt;c00b2f94&gt;] (vfs_write+0xd0/0x160)
	[&lt;c00b2f94&gt;] (vfs_write) from [&lt;c00b32d0&gt;] (SyS_write+0x40/0x78)
	[&lt;c00b32d0&gt;] (SyS_write) from [&lt;c000dc00&gt;] (ret_fast_syscall+0x0/0x30)
	Code: ea00000e e1a01008 e1a00005 ebfff6fc (e5d0a016)

Fixes: 959d2952d124 ("staging:iio: make iio_sw_buffer_preenable much more general.")
Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Cc: Stable@vger.kernel.org
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs</title>
<updated>2014-11-02T18:28:43Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2014-11-02T18:28:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7e05b807b93cc553bc2aa5ae8fac620cece34720'/>
<id>urn:sha1:7e05b807b93cc553bc2aa5ae8fac620cece34720</id>
<content type='text'>
Pull VFS fixes from Al Viro:
 "A bunch of assorted fixes, most of them followups to overlayfs merge"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  ovl: initialize -&gt;is_cursor
  Return short read or 0 at end of a raw device, not EIO
  isofs: don't bother with -&gt;d_op for normal case
  isofs_cmp(): we'll never see a dentry for . or ..
  overlayfs: fix lockdep misannotation
  ovl: fix check for cursor
  overlayfs: barriers for opening upper-layer directory
  rcu: Provide counterpart to rcu_dereference() for non-RCU situations
  staging: android: logger: Fix log corruption regression
</content>
</entry>
</feed>
