mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
Merge tag 'v6.1.30' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-6.1.y
This is the 6.1.30 stable release Change-Id: I268668746430d1e3629cbff9708da64f55a8780c
This commit is contained in:
@@ -102,6 +102,7 @@ static ssize_t uwrite(void const *const buf, size_t const count)
|
||||
{
|
||||
size_t cnt = count;
|
||||
off_t idx = 0;
|
||||
void *p = NULL;
|
||||
|
||||
file_updated = 1;
|
||||
|
||||
@@ -109,7 +110,10 @@ static ssize_t uwrite(void const *const buf, size_t const count)
|
||||
off_t aoffset = (file_ptr + count) - file_end;
|
||||
|
||||
if (aoffset > file_append_size) {
|
||||
file_append = realloc(file_append, aoffset);
|
||||
p = realloc(file_append, aoffset);
|
||||
if (!p)
|
||||
free(file_append);
|
||||
file_append = p;
|
||||
file_append_size = aoffset;
|
||||
}
|
||||
if (!file_append) {
|
||||
|
||||
Reference in New Issue
Block a user