<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/utils/nvram, branch v18.06.0-rc2</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>packages: nvram: fix memory leak in _nvram_free</title>
<updated>2017-11-15T20:11:23+00:00</updated>
<author>
<name>Zhai Zhaoxuan</name>
<email>zhaizhaoxuan@xiaomi.com</email>
</author>
<published>2017-07-11T10:12:00+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=c382237ac33a787043b22abc42f0c5a80278baae'/>
<id>c382237ac33a787043b22abc42f0c5a80278baae</id>
<content type='text'>
The value of nvram_tuple_t is allocated in _nvram_realloc,
but it is not freed in _nvram_free.

Signed-off-by: Zhai Zhaoxuan &lt;zhaizhaoxuan@xiaomi.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The value of nvram_tuple_t is allocated in _nvram_realloc,
but it is not freed in _nvram_free.

Signed-off-by: Zhai Zhaoxuan &lt;zhaizhaoxuan@xiaomi.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nvram: add help message for nvram magic not found</title>
<updated>2017-08-22T12:31:32+00:00</updated>
<author>
<name>BangLang Huang</name>
<email>banglang.huang@foxmail.com</email>
</author>
<published>2017-02-24T02:58:09+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=69da83d9f12e4e48b546fc3fc3ff555034959211'/>
<id>69da83d9f12e4e48b546fc3fc3ff555034959211</id>
<content type='text'>
The program would failed if nvram magic not found
in specific partition.

Signed-off-by: BangLang Huang &lt;banglang.huang@foxmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The program would failed if nvram magic not found
in specific partition.

Signed-off-by: BangLang Huang &lt;banglang.huang@foxmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nvram: improve argument check when program start</title>
<updated>2017-08-22T12:31:32+00:00</updated>
<author>
<name>BangLang Huang</name>
<email>banglang.huang@foxmail.com</email>
</author>
<published>2017-02-24T02:52:52+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=c7e2a6fe923dc86bab14d94ead322a045efca4c9'/>
<id>c7e2a6fe923dc86bab14d94ead322a045efca4c9</id>
<content type='text'>
print help message when argument count is less
than 2.

Signed-off-by: BangLang Huang &lt;banglang.huang@foxmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
print help message when argument count is less
than 2.

Signed-off-by: BangLang Huang &lt;banglang.huang@foxmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nvram: add usage() function</title>
<updated>2017-08-22T12:31:32+00:00</updated>
<author>
<name>BangLang Huang</name>
<email>banglang.huang@foxmail.com</email>
</author>
<published>2017-02-24T02:45:16+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=2a253e7cdbacd1bd19da80ea6f35a93b42655c3b'/>
<id>2a253e7cdbacd1bd19da80ea6f35a93b42655c3b</id>
<content type='text'>
Merge the help message into a single function,
so that we can use it somewhere else.

Signed-off-by: BangLang Huang &lt;banglang.huang@foxmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Merge the help message into a single function,
so that we can use it somewhere else.

Signed-off-by: BangLang Huang &lt;banglang.huang@foxmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nvram: fix memory leak</title>
<updated>2017-08-22T12:31:32+00:00</updated>
<author>
<name>BangLang Huang</name>
<email>banglang.huang@foxmail.com</email>
</author>
<published>2017-02-24T02:16:17+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=1948d8e08c72106a01b359a30217cf92657cc79d'/>
<id>1948d8e08c72106a01b359a30217cf92657cc79d</id>
<content type='text'>
Fix memory leak on nvram_open() and nvram_open_rdonly().

For nvram_open(), the 'fd' should be closed on error, and
mmap_area should be unmap when nvram magic can not be found.

For nvram_open_rdonly(), the 'file' variable should free before
return. Once nvram_find_mtd() return successfully, it will allocate
memory to save mtd device string.

Signed-off-by: BangLang Huang &lt;banglang.huang@foxmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix memory leak on nvram_open() and nvram_open_rdonly().

For nvram_open(), the 'fd' should be closed on error, and
mmap_area should be unmap when nvram magic can not be found.

For nvram_open_rdonly(), the 'file' variable should free before
return. Once nvram_find_mtd() return successfully, it will allocate
memory to save mtd device string.

Signed-off-by: BangLang Huang &lt;banglang.huang@foxmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>utils/nvram: drop Build/Prepare rule in favor of default one</title>
<updated>2016-10-15T09:36:52+00:00</updated>
<author>
<name>Alexandru Ardelean</name>
<email>ardeleanalex@gmail.com</email>
</author>
<published>2016-10-06T06:19:34+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=4786484afd3359357bf3ff95de67f1331be1a82f'/>
<id>4786484afd3359357bf3ff95de67f1331be1a82f</id>
<content type='text'>
Signed-off-by: Alexandru Ardelean &lt;ardeleanalex@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Alexandru Ardelean &lt;ardeleanalex@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nvram: install init.d quirks script on brcm47xx only</title>
<updated>2016-05-20T20:33:15+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>zajec5@gmail.com</email>
</author>
<published>2016-05-19T22:56:51+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=1050a609cfcce8e9fbc1b2d2b38093b464d314b4'/>
<id>1050a609cfcce8e9fbc1b2d2b38093b464d314b4</id>
<content type='text'>
It contains some quirks for old MIPS devices.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It contains some quirks for old MIPS devices.

Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>package: remove duplicate lines from otrx and nvram makefiles</title>
<updated>2016-04-26T21:28:17+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jo@mein.io</email>
</author>
<published>2016-04-26T21:28:17+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=07bdd309067e794da2725a13b0ef003c4b4c13e0'/>
<id>07bdd309067e794da2725a13b0ef003c4b4c13e0</id>
<content type='text'>
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>package: flag further target specific packages as nonshared</title>
<updated>2016-04-26T21:26:43+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jo@mein.io</email>
</author>
<published>2016-04-26T21:09:12+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=b04a25491f707acf7100b453b77b267acddceae6'/>
<id>b04a25491f707acf7100b453b77b267acddceae6</id>
<content type='text'>
Add nonshared flag to package depending on specific targets or subtargets as
there's no guarantee otherwise that they'll be available in the shared repo.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add nonshared flag to package depending on specific targets or subtargets as
there's no guarantee otherwise that they'll be available in the shared repo.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>package: mark nvram and otrx nonshared as they're target specific</title>
<updated>2016-04-26T21:09:12+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jo@mein.io</email>
</author>
<published>2016-04-26T21:09:12+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=69ccef03f9c61cfbe38cc9dbee19d331f890591a'/>
<id>69ccef03f9c61cfbe38cc9dbee19d331f890591a</id>
<content type='text'>
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</pre>
</div>
</content>
</entry>
</feed>
