]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2022 09:31:54 +0000 (11:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2022 09:31:54 +0000 (11:31 +0200)
added patches:
parisc-fbdev-stifb-align-graphics-memory-size-to-4mb.patch

queue-4.14/parisc-fbdev-stifb-align-graphics-memory-size-to-4mb.patch [new file with mode: 0644]
queue-4.14/revert-fs-check-fmode_lseek-to-control-internal-pipe.patch
queue-4.14/series

diff --git a/queue-4.14/parisc-fbdev-stifb-align-graphics-memory-size-to-4mb.patch b/queue-4.14/parisc-fbdev-stifb-align-graphics-memory-size-to-4mb.patch
new file mode 100644 (file)
index 0000000..a0e99b9
--- /dev/null
@@ -0,0 +1,31 @@
+From aca7c13d3bee81a968337a5515411409ae9d095d Mon Sep 17 00:00:00 2001
+From: Helge Deller <deller@gmx.de>
+Date: Fri, 14 Oct 2022 10:13:55 +0200
+Subject: parisc: fbdev/stifb: Align graphics memory size to 4MB
+
+From: Helge Deller <deller@gmx.de>
+
+commit aca7c13d3bee81a968337a5515411409ae9d095d upstream.
+
+Independend of the current graphics resolution, adjust the reported
+graphics card memory size to the next 4MB boundary.
+This fixes the fbtest program which expects a naturally aligned size.
+
+Signed-off-by: Helge Deller <deller@gmx.de>
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/video/fbdev/stifb.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/video/fbdev/stifb.c
++++ b/drivers/video/fbdev/stifb.c
+@@ -1259,7 +1259,7 @@ static int __init stifb_init_fb(struct s
+       
+       /* limit fbsize to max visible screen size */
+       if (fix->smem_len > yres*fix->line_length)
+-              fix->smem_len = yres*fix->line_length;
++              fix->smem_len = ALIGN(yres*fix->line_length, 4*1024*1024);
+       
+       fix->accel = FB_ACCEL_NONE;
index ee39fce5ddbfb04a688b9f65493a2a5fb4788626..bd407e7b2b831551eac9ac58fe2b48405b870b5a 100644 (file)
@@ -13,14 +13,12 @@ now.
 Reported-by: Saeed Mirzamohammadi <saeed.mirzamohammadi@oracle.com>
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- fs/splice.c | 10 ++++++----
+ fs/splice.c |   10 ++++++----
  1 file changed, 6 insertions(+), 4 deletions(-)
 
-diff --git a/fs/splice.c b/fs/splice.c
-index 04d25af25a42..c84ac7e97e21 100644
 --- a/fs/splice.c
 +++ b/fs/splice.c
-@@ -898,15 +898,17 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
+@@ -898,15 +898,17 @@ ssize_t splice_direct_to_actor(struct fi
  {
        struct pipe_inode_info *pipe;
        long ret, bytes;
@@ -42,6 +40,3 @@ index 04d25af25a42..c84ac7e97e21 100644
                return -EINVAL;
  
        /*
--- 
-2.35.1
-
index 6725b5171d94de6113682a560959046ec0cc9ebf..acdc798d4c6c4283eda0a91e0c475b4aa7213f15 100644 (file)
@@ -58,3 +58,4 @@ hid-multitouch-add-memory-barriers.patch
 quota-check-next-prev-free-block-number-after-reading-from-quota-file.patch
 regulator-qcom_rpm-fix-circular-deferral-regression.patch
 revert-fs-check-fmode_lseek-to-control-internal-pipe.patch
+parisc-fbdev-stifb-align-graphics-memory-size-to-4mb.patch