• R/O
  • HTTP
  • SSH
  • HTTPS

linux-2.4.36: コミット

2.4.36-stable kernel tree


コミットメタ情報

リビジョン86807e7bf717cebd2ece0dcf8f221b5d5b99cf4d (tree)
日時2006-08-30 15:07:48
作者PaX Team <pageexec@free...>
コミッターWilly Tarreau

ログメッセージ

[PATCH] cciss: do not mark cciss_scsi_detect init

if the cciss driver is compiled in then later discovery requests
initiated from userland will result in calling free'd memory since
the detect method is marked as init. suggested fix is to simply
not mark it as
init, 2.6 has done it as well.

変更サマリ

差分

--- a/drivers/block/cciss_scsi.c
+++ b/drivers/block/cciss_scsi.c
@@ -49,7 +49,7 @@ static int sendcmd(
4949 unsigned char *scsi3addr );
5050
5151
52-int __init cciss_scsi_detect(Scsi_Host_Template *tpnt);
52+int cciss_scsi_detect(Scsi_Host_Template *tpnt);
5353 int cciss_scsi_release(struct Scsi_Host *sh);
5454 const char *cciss_scsi_info(struct Scsi_Host *sa);
5555
@@ -777,7 +777,7 @@ complete_scsi_command( CommandList_struct *cp, int timeout, __u32 tag)
777777 The scsi mid layer (scsi_register_module) is
778778 called from cciss.c:cciss_init_one(). */
779779
780-int __init
780+int
781781 cciss_scsi_detect(Scsi_Host_Template *tpnt)
782782 {
783783 int i;
旧リポジトリブラウザで表示