Skip to content

Commit

Permalink
Merge branch '2.6.36-fixes' of git://github.com/schandinat/linux-2.6
Browse files Browse the repository at this point in the history
* '2.6.36-fixes' of git://github.com/schandinat/linux-2.6:
  drivers/video/via/ioctl.c: prevent reading uninitialized stack memory
  • Loading branch information
Linus Torvalds committed Sep 16, 2010
2 parents bd12e5c + b4aaa78 commit 1f0ce99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/via/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ int viafb_ioctl_get_viafb_info(u_long arg)
{
struct viafb_ioctl_info viainfo;

memset(&viainfo, 0, sizeof(struct viafb_ioctl_info));

viainfo.viafb_id = VIAID;
viainfo.vendor_id = PCI_VIA_VENDOR_ID;

Expand Down

0 comments on commit 1f0ce99

Please sign in to comment.