diff options
author | maximilian attems <max@dual.(none)> | 2007-09-01 10:56:59 +0200 |
---|---|---|
committer | maximilian attems <max@dual.(none)> | 2007-09-01 10:56:59 +0200 |
commit | 971f6f778035b49afaea9be8408f90cccb6b548b (patch) | |
tree | fbd8200ffdfc7db237899f3725b1dd16d9ab54da | |
parent | 928ed0689705f52a757e23478783b4ade1423944 (diff) | |
download | initramfs-tools-971f6f778035b49afaea9be8408f90cccb6b548b.tar.gz initramfs-tools-971f6f778035b49afaea9be8408f90cccb6b548b.zip |
init-top/framebuffer: Check that fb minor is below 32.
you can only have up to 32 fb devices going from fb0 to fb31.
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | scripts/init-top/framebuffer | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 36a3b81..6a1d1f3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,8 +9,9 @@ initramfs-tools (0.91) UNRELEASED; urgency=low * scripts/local: Quote readonly variable. (LP: #115807) * mkinitramfs, scripts/keymap: Add trailing slash on cp destination for dir. * init: Call panic for debug sh if run-init fails. + * init-top/framebuffer: Check that fb minor is below 32. - -- maximilian attems <maks@debian.org> Sat, 01 Sep 2007 10:45:04 +0200 + -- maximilian attems <maks@debian.org> Sat, 01 Sep 2007 10:55:33 +0200 initramfs-tools (0.90a) unstable; urgency=high diff --git a/scripts/init-top/framebuffer b/scripts/init-top/framebuffer index 08e36d2..9292024 100755 --- a/scripts/init-top/framebuffer +++ b/scripts/init-top/framebuffer @@ -88,7 +88,9 @@ fi if [ -e /proc/fb ]; then while read fbno desc; do - mknod /dev/fb${fbno} c 29 ${fbno} + if [ $(($fbnum < 32)) ]; then + mknod /dev/fb${fbno} c 29 ${fbno} + fi done < /proc/fb else mknod /dev/fb0 c 29 0 |