<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/ubi/wl.c, branch linux-4.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-05-06T20:03:52Z</updated>
<entry>
<title>UBI: initialize LEB number variable</title>
<updated>2015-05-06T20:03:52Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2015-02-28T10:23:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5a156e848f96a0f0024ef94a3e19979f8f7e9dbc'/>
<id>urn:sha1:5a156e848f96a0f0024ef94a3e19979f8f7e9dbc</id>
<content type='text'>
commit f16db8071ce18819fbd705ddcc91c6f392fb61f8 upstream.

In some of the 'out_not_moved' error paths, lnum may be used
uninitialized. Don't ignore the warning; let's fix it.

This uninitialized variable doesn't have much visible effect in the end,
since we just schedule the PEB for erasure, and its LEB number doesn't
really matter (it just gets printed in debug messages). But let's get it
straight anyway.

Coverity CID #113449

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>UBI: extend UBI layer debug/messaging capabilities - cosmetics</title>
<updated>2015-01-28T15:09:09Z</updated>
<author>
<name>Tanya Brokhman</name>
</author>
<published>2014-11-09T11:06:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=45fc5c81d03601da36e8217e9830d053ef2d7db6'/>
<id>urn:sha1:45fc5c81d03601da36e8217e9830d053ef2d7db6</id>
<content type='text'>
Some cosmetic fixes to the patch "UBI: Extend UBI layer debug/messaging
capabilities".

Signed-off-by: Tanya Brokhman &lt;tlinder@codeaurora.org&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: Fix double free after do_sync_erase()</title>
<updated>2014-11-07T11:42:43Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2014-11-06T15:47:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aa5ad3b6eb8feb2399a5d26c8fb0060561bb9534'/>
<id>urn:sha1:aa5ad3b6eb8feb2399a5d26c8fb0060561bb9534</id>
<content type='text'>
If the erase worker is unable to erase a PEB it will
free the ubi_wl_entry itself.
The failing ubi_wl_entry must not free()'d again after
do_sync_erase() returns.

Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: Extend UBI layer debug/messaging capabilities</title>
<updated>2014-11-07T10:08:51Z</updated>
<author>
<name>Tanya Brokhman</name>
</author>
<published>2014-10-20T16:57:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=326087033108e7806e24974f2c8271f95cddaf3a'/>
<id>urn:sha1:326087033108e7806e24974f2c8271f95cddaf3a</id>
<content type='text'>
If there is more then one UBI device mounted, there is no way to
distinguish between messages from different UBI devices.
Add device number to all ubi layer message types.

The R/O block driver messages were replaced by pr_* since
ubi_device structure is not used by it.

Amended a bit by Artem.

Signed-off-by: Tanya Brokhman &lt;tlinder@codeaurora.org&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: Fix trivial typo in __schedule_ubi_work</title>
<updated>2014-09-30T06:29:37Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2014-09-16T13:30:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e3e00445d478f63f42a306e549f7358b6612110b'/>
<id>urn:sha1:e3e00445d478f63f42a306e549f7358b6612110b</id>
<content type='text'>
s/of/if/

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: wl: Rename cancel flag to shutdown</title>
<updated>2014-09-26T10:43:32Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2014-09-22T08:45:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=849271a4e4b723c521df0f55d67614d8ffd5e125'/>
<id>urn:sha1:849271a4e4b723c521df0f55d67614d8ffd5e125</id>
<content type='text'>
It confused me more than once that the cancel flag of the
work function does not indicate the cancellation of a single work.
In fact it indicates the WL sub-system shutdown and therefore
worker functions have to free their wl_entries too.
That's why you cannot cancel a single work, you can only shutdown
all works.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: Fix livelock in produce_free_peb()</title>
<updated>2014-09-24T12:36:16Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2014-09-19T15:37:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b91671bb23a79c32a23b0ad5d6e6ad292bb21bdf'/>
<id>urn:sha1:b91671bb23a79c32a23b0ad5d6e6ad292bb21bdf</id>
<content type='text'>
The while loop in produce_free_peb() assumes that each work will produce a
free PEB. This is not true.
If ubi-&gt;works_count is 1 and the only scheduled work is the
wear_leveling_worker() produce_free_peb() can loop forever in case
nobody schedules an erase work.
Fix this issue by checking in the while loop whether work is scheduled.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: bugfix in ubi_wl_flush()</title>
<updated>2014-07-28T16:07:33Z</updated>
<author>
<name>Richard Weinberger</name>
</author>
<published>2014-07-27T07:35:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49e236bc4a2639af0e77b3a05460e8367e3187a4'/>
<id>urn:sha1:49e236bc4a2639af0e77b3a05460e8367e3187a4</id>
<content type='text'>
Use the _safe variant because we're iterating over a list where items get
deleted and freed.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: fix ubi free PEBs count calculation</title>
<updated>2014-05-05T06:31:33Z</updated>
<author>
<name>Tanya Brokhman</name>
</author>
<published>2014-04-01T08:02:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d21bb7667c4b57a15077d60d23385d9a1c01d08'/>
<id>urn:sha1:3d21bb7667c4b57a15077d60d23385d9a1c01d08</id>
<content type='text'>
The ubi-&gt;free_count should be updated with every insert/remove to/from
the ubi-&gt;free list.

Signed-off-by: Tanya Brokhman &lt;tlinder@codeaurora.org&gt;
Reviewed-by: Dolev Raviv &lt;draviv@codeaurora.org&gt;
Acked-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>UBI: fix error path in __wl_get_peb</title>
<updated>2014-05-05T06:31:33Z</updated>
<author>
<name>Tanya Brokhman</name>
</author>
<published>2014-04-01T08:01:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87ed89d21ede38f86be9419ca7c6dd4761764bbb'/>
<id>urn:sha1:87ed89d21ede38f86be9419ca7c6dd4761764bbb</id>
<content type='text'>
In case of an error (if there are not free PEB's for example),
__wl_get_peb will return a negative value. In order to prevent access
violation we need to test the returned value prior to using it later on.

Signed-off-by: Tatyana Brokhman &lt;tlinder@codeaurora.org&gt;
Reviewed-by: Dolev Raviv &lt;draviv@codeaurora.org&gt;
Acked-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
</feed>
